1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Ray Rashif <schiv@archlinux.org>
3 # Contributor: damir <damir@archlinux.org>
4 # Contributor: Lukas Sabota <punkrockguy318@comcast.net>
5 # Contributor: Brice Carpentier <brice@dlfp.org>
10 pkgdesc="Extensible Python-based build utility"
12 url="https://scons.org"
15 makedepends=(ninja python-build python-installer python-lxml python-setuptools
16 python-sphinx python-sphinx_rtd_theme python-wheel rst2pdf)
17 checkdepends=(python-psutil python-pytest)
18 source=($pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/$pkgver.tar.gz)
19 sha512sums=('01fcd40bf818ca22a278973af1cda3024efb74cf877f15d46607fda860448fbd577fc96ba33fef2bed3d145e662a0371f55e8c927e7ac44feea7f3081791ce11')
20 b2sums=('f6ce757f2edc40551b05285098626bb62def6abda2380d4885ee4443868e715e53aaa34f26c09dc689bb6ade26d1b0e276046fe3b1d2ddf8eb40400bca9ea164')
24 python scripts/scons.py --include-dir= -j1
25 python -m build --wheel --no-isolation
30 python runtest.py --all --unit-only
35 python -m installer --destdir="$pkgdir" dist/*.whl
36 # remove man pages wrongly installed due to mishandling of install-data
37 rm -fv "$pkgdir/usr/"*.1
38 install -vDm 644 build/doc/man/* -t "$pkgdir/usr/share/man/man1/"
39 install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
40 install -vDm 644 {{CHANGES,RELEASE}.txt,README.rst} -t "$pkgdir/usr/share/doc/$pkgname/"