diff options
-rw-r--r-- | testing/py3-pefile/APKBUILD (renamed from testing/py-pefile/APKBUILD) | 37 |
1 files changed, 8 insertions, 29 deletions
diff --git a/testing/py-pefile/APKBUILD b/testing/py3-pefile/APKBUILD index b03d7125d6..8b9821f637 100644 --- a/testing/py-pefile/APKBUILD +++ b/testing/py3-pefile/APKBUILD @@ -1,6 +1,6 @@ # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> -pkgname=py-pefile +pkgname=py3-pefile _pkgname=pefile pkgver=2019.4.18 pkgrel=0 @@ -8,45 +8,24 @@ pkgdesc="Python PE parsing module" url="https://github.com/erocarrera/pefile" arch="noarch" license="MIT" -depends="py3-future" -makedepends="python2-dev python3-dev py-setuptools" -subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" +depends="py3-future python3" +makedepends="py3-setuptools" source="$pkgname-$pkgver.tar.gz::https://github.com/erocarrera/$_pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" +replaces=py-pefile # Backwards compatibility +provides=py-pefile=$pkgver-r$pkgrel # Backwards compatibility + build() { - cd "$builddir" - python2 setup.py build python3 setup.py build } check() { - cd "$builddir" - python2 setup.py check python3 setup.py check } - package() { - mkdir -p "$pkgdir" -} - -_py() { - local python="$1" - pkgdesc="$pkgdesc - $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" -} - -_py2() { - replaces="$pkgname" - _py python2 -} - -_py3() { - _py python3 + python3 setup.py install --prefix=/usr --root="$pkgdir" } -sha512sums="351e9fa45731134b4c983b987ab865aa838d58c0c68b9d1a0645c705cd49d51c763ab6db7d8f5d0bf9a1ba8ea89dd297a7fc5bbd1d8184eebd84cf6553743ce5 py-pefile-2019.4.18.tar.gz" +sha512sums="351e9fa45731134b4c983b987ab865aa838d58c0c68b9d1a0645c705cd49d51c763ab6db7d8f5d0bf9a1ba8ea89dd297a7fc5bbd1d8184eebd84cf6553743ce5 py3-pefile-2019.4.18.tar.gz" |