diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 09:15:21 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 09:15:21 +0000 |
commit | c4e796e04a719b8ca71de62b8d28362541825a7c (patch) | |
tree | 370c0c182ed7db8819e8bc2ca227811a263ae72f | |
parent | fa34e5490fe73fb6e63fc34f72418684496a1a30 (diff) | |
download | aports-c4e796e04a719b8ca71de62b8d28362541825a7c.tar.bz2 aports-c4e796e04a719b8ca71de62b8d28362541825a7c.tar.xz |
community/py-future: moved from testing, improved APKBUILD when create subpackages
-rw-r--r-- | community/py-future/APKBUILD (renamed from testing/py-future/APKBUILD) | 18 | ||||
-rw-r--r-- | community/py-future/re-enable-python3-5.patch (renamed from testing/py-future/re-enable-python3-5.patch) | 0 |
2 files changed, 7 insertions, 11 deletions
diff --git a/testing/py-future/APKBUILD b/community/py-future/APKBUILD index 8c1ca24dbf..4bfca58c78 100644 --- a/testing/py-future/APKBUILD +++ b/community/py-future/APKBUILD @@ -3,7 +3,7 @@ pkgname=py-future _pkgname=python-future pkgver=0.15.2 -pkgrel=1 +pkgrel=2 pkgdesc="Easy, clean, reliable Python 2/3 compatibility" url="http://python-future.org/" arch="noarch" @@ -19,24 +19,20 @@ builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" python2 setup.py build || return 1 - python3 setup.py build || return 1 + python3 setup.py build || return 1 } package() { - cd "$builddir" - python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1 - python3 setup.py install --root=$pkgdir/ --optimize=1 || return 1 - install -Dm0644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE.txt + mkdir -p "$pkgdir" } _py() { local python=$1 pkgdesc="$pkgdesc - $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - local dir=$($python -c 'import sysconfig; print(sysconfig.get_path("stdlib"))') - - mkdir -p "$subpkgdir"${dir} - mv "$pkgdir"${dir}/* "$subpkgdir"${dir} + install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" + install -Dm0644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE.txt } _py2() { diff --git a/testing/py-future/re-enable-python3-5.patch b/community/py-future/re-enable-python3-5.patch index a5f6fecd6b..a5f6fecd6b 100644 --- a/testing/py-future/re-enable-python3-5.patch +++ b/community/py-future/re-enable-python3-5.patch |