You are not logged in.
I have noticed in different PKGBUILD's that the variable "arch=()" contains either:
arch=('i686' 'x86_64')
or
arch=(i686 x86_64)
Are the '' necessary...? Would this work for one of my PKGBUILD's
arch=(x86_64)
Simple syntax question.... its that I have seen it done differently.
Offline
All versions you've given work in a PKGBUILD.
In my opinion the usage of '' is cleaner than without.
Website: andrwe.org
Repository: repo.andrwe.org/<archtiecture>
Offline
See the example at the end of "man PKGBUILD" for a guide to the best practise.
Offline
See the example at the end of "man PKGBUILD" for a guide to the best practise.
Ya .. I had read the man .... I just had seen some PKGBUILD's from the AUR that where missing the syntax... And I was just wondering if it at all, had an effect the build.
Offline
the $arch array should contain the architecture in which the package can build and run on. I iritates me when I find packages in aur that only lists i686 when it builds and runs just fine on x86_64 too. (or the other way around)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
the $arch array should contain the architecture in which the package can build and run on. It irritates me when I find packages in aur that only lists i686 when it builds and runs just fine on x86_64 too. (or the other way around)
What if the maintainer only has a i686 box and just build/test packages on i686 ?
But maybe, when in doubt, it would still be better to include both by default, and if he gets a report that the package does not build on one arch, he can try to investigate what the problem is, and remove the arch if it cannot be fixed.
Anyway if this makes sense and if this is what you meant, maybe it should be better explained and documented, e.g. in AUR guidelines.
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline