OCaml 4.14.0 rebuild
[arch-packages.git] / scons / repos / extra-any / PKGBUILD
blob8f9e849a2b9d4a866c1b4bd2b66d262046b831d2
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>
7 pkgname=scons
8 pkgver=4.4.0
9 pkgrel=1
10 pkgdesc="Extensible Python-based build utility"
11 arch=(any)
12 url="https://scons.org"
13 license=(MIT)
14 depends=(python)
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')
22 build() {
23   cd $pkgname-$pkgver
24   python scripts/scons.py --include-dir= -j1
25   python -m build --wheel --no-isolation
28 check() {
29   cd $pkgname-$pkgver
30   python runtest.py --all --unit-only
33 package() {
34   cd $pkgname-$pkgver
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/"