summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-11-06 21:33:36 +0100
committerCarl Hetherington <cth@carlh.net>2025-11-07 00:46:32 +0100
commitc0b690471e47292e5af84e988d6ca632850f173c (patch)
treeb6ef53b44044bb8c16fa7fa8a983b32b97fb3807
parent0e77787cad3a63bb56082271b3fafb09fa601f5f (diff)
Support building package on arch.v1.0.9dcpomatic-2.13.0
-rw-r--r--cscript28
1 files changed, 18 insertions, 10 deletions
diff --git a/cscript b/cscript
index 22e91d9..516e871 100644
--- a/cscript
+++ b/cscript
@@ -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')