You are not logged in.

#1 2020-07-15 04:28:38

BenTheTechGuy
Member
Registered: 2020-07-15
Posts: 8

[SOLVED] How to build a package for other arches

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

#2 2020-07-15 05:06:28

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] How to build a package for other arches

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

#3 2020-07-15 21:33:58

BenTheTechGuy
Member
Registered: 2020-07-15
Posts: 8

Re: [SOLVED] How to build a package for other arches

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

#4 2020-07-15 23:00:34

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,859
Website

Re: [SOLVED] How to build a package for other arches

Edit the first post and amend the topic title.

https://wiki.archlinux.org/index.php/Co … ow_to_post


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.

Offline

#5 2020-07-16 01:21:22

BenTheTechGuy
Member
Registered: 2020-07-15
Posts: 8

Re: [SOLVED] How to build a package for other arches

Done

Offline

Board footer

Powered by FluxBB