diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/scons/APKBUILD | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/main/scons/APKBUILD b/main/scons/APKBUILD index 08f798f09b..60b9f7fd37 100644 --- a/main/scons/APKBUILD +++ b/main/scons/APKBUILD @@ -2,29 +2,32 @@ # Maintainer: William Pitcock <nenolod@dereferenced.org> pkgname=scons pkgver=3.0.1 -pkgrel=0 +pkgrel=1 pkgdesc="Software construction system" url="http://www.scons.org" arch="noarch" license="MIT" depends="python3" -makedepends="python2-dev" +makedepends="python3-dev" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" - python2 setup.py build + python3 setup.py build } -package() { +check() { cd "$builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" + python3 setup.py check } -check() { +package() { cd "$builddir" - python2 setup.py check + python3 setup.py install --prefix=/usr --root="$pkgdir" + + # set env to python3 + sed -i 's|/usr/bin/env python|/usr/bin/python3|' "$pkgdir"/usr/bin/* } sha512sums="b7be40ba507366cc678f31b910553cadaf59781c3a91833a34acbd29d9cad0cda38f6753034bf92c3af55d1e0c2f72aba5d81f1ec67205d0345b005d286f7084 scons-3.0.1.tar.gz" |