You are not logged in.

#1 2013-06-23 16:06:40

alexdw
Member
Registered: 2013-03-25
Posts: 42

[Solved] Different Versions for x86_64 and i686 in AUR

I uploaded a x86_64 architecture package to AUR earlier and I've been trying to upload the equivalent i686 package but since they have the same name it just overwrites the x86_64 one. The PKGBUILD is exactly the same for both but there is a different source file (and corresponding MD5SUM) so I would like to upload both of them (like there is for binaries in the official package repos). Is there a convention for cases like this in the AUR? I couldn't find anything about it in the Wiki.

Last edited by alexdw (2013-06-23 16:32:46)

Offline

#2 2013-06-23 16:09:37

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 5,126

Re: [Solved] Different Versions for x86_64 and i686 in AUR

I use:

if [[ "$CARCH" == "i686" ]]; then
  source=()
  sha256sums=()
else
  source=()
  sha256sums=()
fi

Online

#3 2013-06-23 16:10:45

Psykorgasm
Member
From: England, UK
Registered: 2011-11-24
Posts: 158

Re: [Solved] Different Versions for x86_64 and i686 in AUR

You only need one PKGBUILD for both. I think you need to read up a little more on creating PKGBUILDS wink

Offline

#4 2013-06-23 16:10:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,432

Re: [Solved] Different Versions for x86_64 and i686 in AUR

I don't know what is the Right Way, but maybe you can just add something like '64bit' and '32bit' to the package name?

Please disregard ;P

Last edited by karol (2013-06-23 16:11:49)

Offline

#5 2013-06-23 16:13:58

alexdw
Member
Registered: 2013-03-25
Posts: 42

Re: [Solved] Different Versions for x86_64 and i686 in AUR

Scimmia wrote:

I use:

if [[ "$CARCH" == "i686" ]]; then
  source=()
  sha256sums=()
else
  source=()
  sha256sums=()
fi

Thank you, I'll try that - it looks like it should work. smile

Psykorgasm wrote:

You only need one PKGBUILD for both. I think you need to read up a little more on creating PKGBUILDS wink

I think you're right - I didn't know you could use logic like the above in PKGBUILDs. smile

Offline

Board footer

Powered by FluxBB