diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-07-26 11:55:19 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-07-26 11:55:19 +0000 |
commit | 28e0ad0e81ef2a72dfdc01bab356ac053c21df97 (patch) | |
tree | 1a36b8daffddf086320752fcdaf805d90ffd4aae | |
parent | f495fa704cfd289eca20536dd1d72a31d4fc6b5c (diff) | |
download | aports-28e0ad0e81ef2a72dfdc01bab356ac053c21df97.tar.bz2 aports-28e0ad0e81ef2a72dfdc01bab356ac053c21df97.tar.xz |
main/py-ecdsa: improved APKBUILD
-rw-r--r-- | main/py-ecdsa/APKBUILD | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/main/py-ecdsa/APKBUILD b/main/py-ecdsa/APKBUILD index dbd702e03d..7633dec32b 100644 --- a/main/py-ecdsa/APKBUILD +++ b/main/py-ecdsa/APKBUILD @@ -3,14 +3,13 @@ pkgname=py-ecdsa _pkgname=ecdsa pkgver=0.13 -pkgrel=2 +pkgrel=3 pkgdesc="A Python cryptographic signature library" url="http://github.com/warner/python-ecdsa" arch="noarch" license="MIT" depends="" -depends_dev="" -makedepends="python-dev python3-dev py-setuptools" +makedepends="python2-dev python3-dev py-setuptools" install="" subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" @@ -19,25 +18,21 @@ builddir="$srcdir"/$_pkgname-$pkgver build() { cd "$builddir" - python setup.py build || return 1 + python2 setup.py build || return 1 python3 setup.py build || return 1 } 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} + arch="all" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" } _py2() { |