Thanks to yaourt it's pretty simple to install non-standard software. However in most cases I have to manually edit the PKGBUILD file from arch=('x86_64' 'i686') to arch=('x86_64' 'i686' 'armv6h') for the compilation to start. Is there any way to have this done automagically?

2 Answers 2


You should not be changing the packages specified arch array. The architectures specified in the PKGBUILDs are the ones it has been tested against. Here you can find a list of PKGBUILDs that are compatible for the armv6h architecture.

Also, using aur helpers such as yaourt is not the best way to do things. Yes, it makes things one command easier for you. But, it also can put you in a bind very easily. And you should really understand how tools like makepkg operate before attempting to work around them.

Trying to use PKGBUILDs from architectures other than your own by just simply adding your architecture to the arch array in the PKGBUILD is an extremely dangerous move. Archlinux and Archlinux-ARM are not identical (#archlinux and #archlinux-arm). Use packages that were built for your architecture and support your architecture.

Edit: If you were using a good AUR helper like cower to download packages from the AUR and then building with makepkg. Then, you could use something like makepkg -A where -A would set ignore architecture

  • There are some cases that make sense to ignore the architecture, like many perl modules that are improperly marked as x86/x86_64 but they are actually architecture-independent.
    – ocirocir
    Commented Feb 10, 2020 at 17:19

Yaourt will pass the -A flag to makepkg if -A is passed to yaourt:

$ yaourt -SA the-package

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.