diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-11-06 21:33:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-11-07 00:46:32 +0100 |
| commit | c0b690471e47292e5af84e988d6ca632850f173c (patch) | |
| tree | b6ef53b44044bb8c16fa7fa8a983b32b97fb3807 | |
| parent | 0e77787cad3a63bb56082271b3fafb09fa601f5f (diff) | |
Support building package on arch.v1.0.9dcpomatic-2.13.0
| -rw-r--r-- | cscript | 28 |
1 files changed, 18 insertions, 10 deletions
@@ -1,12 +1,20 @@ +import os -def build(target, options): - cmd = './waf configure --prefix=%s ' % target.directory - if target.platform == 'linux': - cmd += ' --static' - elif target.platform == 'windows': - cmd += f' --target-windows' +def build(target, options, for_package, version): + if for_package and target.platform == 'linux' and target.distro == 'arch': + target.command('git clone https://aur.archlinux.org/libasdcp-cth.git') + os.chdir('libasdcp-cth') + target.command('sed -i "s/tag=v\${pkgver}/branch=dcpomatic-2.13.0/" PKGBUILD') + target.command('makepkg --skipinteg') + target.command('sudo pacman --noconfirm -U libasdcp-cth*.zst') + else: + cmd = './waf configure --prefix=%s ' % target.directory + if target.platform == 'linux': + cmd += ' --static' + elif target.platform == 'windows': + cmd += f' --target-windows' - target.append_with_space('LIBS', '-lboost_system') - target.append_with_space('LIBS', '-lboost_filesystem') - target.command(cmd) - target.command('./waf build install') + target.append_with_space('LIBS', '-lboost_system') + target.append_with_space('LIBS', '-lboost_filesystem') + target.command(cmd) + target.command('./waf build install') |
