blob: fed7574cd3ca71bc70716425219bb9a705e153a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import os
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/leqm-nrt.git')
os.chdir('leqm-nrt')
target.command('sed -i "s/commit=\${_commit}/branch=carl/" PKGBUILD')
target.command('makepkg --skipinteg')
target.command('sudo pacman --noconfirm -U leqm-nrt*.zst')
else:
cmd = './waf configure --without-libsndfile --prefix=%s' % target.directory
if target.platform == 'linux':
cmd += ' --static'
target.command(cmd)
target.command('./waf build install')
|