diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 12:20:18 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 13:00:04 +0000 |
commit | 8656c36008a671cf2ea1919573b5f81b21290bc1 (patch) | |
tree | 1fe8a099c67f5fa2dc69049c1f58a3a8f6e090d6 /community/py-zipstream | |
parent | ada24377d213cae87beec16eaa76fb51f5d1c62c (diff) | |
download | aports-8656c36008a671cf2ea1919573b5f81b21290bc1.tar.bz2 aports-8656c36008a671cf2ea1919573b5f81b21290bc1.tar.xz |
community/py-zipstream: improved APKBUILD
Diffstat (limited to 'community/py-zipstream')
-rw-r--r-- | community/py-zipstream/APKBUILD | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/community/py-zipstream/APKBUILD b/community/py-zipstream/APKBUILD index 0cb7368028..74769d67ce 100644 --- a/community/py-zipstream/APKBUILD +++ b/community/py-zipstream/APKBUILD @@ -9,7 +9,7 @@ url="https://github.com/allanlei/python-zipstream" arch="noarch" license="GPL3" depends="" -makedepends="python-dev python3-dev py-setuptools" +makedepends="python2-dev python3-dev py-setuptools" install="" subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" source="$pkgname-$pkgver.tar.gz::https://github.com/allanlei/$_pkgname/archive/v$pkgver.tar.gz" @@ -21,23 +21,20 @@ build() { } package() { - cd "$builddir" - python setup.py install --root=$pkgdir/ --optimize=1 || return 1 - python3 setup.py install --root=$pkgdir/ --optimize=1 || return 1 + 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" } _py2() { _py python2 + replaces="$pkgname" } _py3() { |