You are not logged in.
I have an AUR package that can be built on x86_64, i686, armv7h, and aarch64. It's used in offline environments, so I can't build the package on all those computers, I need to provide multiple .tar.xz package files to support the different arches. The package doesn't need to be built, there's no compilation going on, it just moves some files around. I need to know how to make makepkg build the package on different architectures. Any ideas?
Last edited by BenTheTechGuy (2020-07-16 01:21:55)
Offline
You could set $CARCH in e.g. makepkg --config makepkg-aarch64.conf, as that is what selects the arch to use for non-"any" packages. Obviously this would not work if you need a working aarch64 compiler, but for -bin PKGBUILDs copying artifacts around it is definitely good enough.
It's also possible to run i686 chroots using systemd-nspawn, and qemu emulation can be used for ARM arches on Intel CPUs, if you need to actually compile stuff.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Ok, that worked. I was able to build the packages since there was no compiling going on. How do I mark this as solved?
Offline
Edit the first post and amend the topic title.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
Done
Offline