packages/pkgbuild: support new key "_crossdirect" to enable/disable crossdirect for single packages
This commit is contained in:
parent
4b2150940d
commit
b006cd8f4d
4 changed files with 26 additions and 7 deletions
|
@ -575,7 +575,7 @@ def build_package(
|
|||
build_root = target_chroot
|
||||
makepkg_compile_opts += ['--nodeps' if package.nodeps else '--syncdeps']
|
||||
env = deepcopy(get_makepkg_env(arch))
|
||||
if foreign_arch and enable_crossdirect and package.name not in CROSSDIRECT_PKGS:
|
||||
if foreign_arch and package.crossdirect and enable_crossdirect and package.name not in CROSSDIRECT_PKGS:
|
||||
env['PATH'] = f"/native/usr/lib/crossdirect/{arch}:{env['PATH']}"
|
||||
target_chroot.mount_crossdirect(native_chroot)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue