diff options
Diffstat (limited to 'main/py-ecdsa')
-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() { |