diff options
author | prspkt <prspkt@protonmail.com> | 2018-04-02 20:03:04 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2018-04-05 07:27:21 +0000 |
commit | f9a85640a0321cb63474ce6922325d0ca0847b72 (patch) | |
tree | c20aa65c1549d8d3126a5bce61ce5e8878a76fc5 /main/scons | |
parent | 7b6129fcc85b29439687d57d6fe32309ed254934 (diff) | |
download | aports-f9a85640a0321cb63474ce6922325d0ca0847b72.tar.bz2 aports-f9a85640a0321cb63474ce6922325d0ca0847b72.tar.xz |
main/scons: upgrade to python3
Diffstat (limited to 'main/scons')
-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" |