[aur-general] Customize testing in PKGBUILD

Bjoern Bidar bjorn.bidar at thaodan.de
Mon Dec 13 23:25:04 UTC 2021


Hey,

Most use env vars or sourcing of extra files during build for this kind of 
purpose. For env vars the only downside is that they are not preserved in 
chroot see:
https://bugs.archlinux.org/task/44827

For linux-pf I use this and add the to the sources of the packages:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=linux-pf#n151
https://aur.archlinux.org/cgit/aur.git/tree/build_pkgs?h=linux-pf#n9

rpmbuild has some --with and --without options to do stuff like you suggest 
maybe something like this would be useful too.

Br,

Björn




More information about the aur-general mailing list