From 9c1280dbe099775b089bd67c5fe7fb9127bb64a2 Mon Sep 17 00:00:00 2001 From: prspkt Date: Mon, 24 Jun 2019 18:15:48 +0300 Subject: testing/py-distorm3: drop python2 --- testing/py-distorm3/APKBUILD | 43 ------------------------------------------- testing/py3-distorm3/APKBUILD | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 43 deletions(-) delete mode 100644 testing/py-distorm3/APKBUILD create mode 100644 testing/py3-distorm3/APKBUILD diff --git a/testing/py-distorm3/APKBUILD b/testing/py-distorm3/APKBUILD deleted file mode 100644 index a5c00e8153..0000000000 --- a/testing/py-distorm3/APKBUILD +++ /dev/null @@ -1,43 +0,0 @@ -# Contributor: Timo Teräs -# Maintainer: Timo Teräs -pkgname=py-distorm3 -pkgver=3.3.4 -pkgrel=1 -pkgdesc="The goal of diStorm3 is to decode x86/AMD64 binary streams and return a structure that describes each instruction" -url="https://pypi.python.org/pypi/distorm3" -arch="all" -license="MIT" -makedepends="python2-dev python3-dev py-setuptools" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" -source="https://github.com/gdabah/distorm/releases/download/v$pkgver/distorm3-$pkgver.zip" -builddir="$srcdir/${pkgname/py-/}-$pkgver" - -build() { - cd "$builddir" - python2 setup.py build - python3 setup.py build -} - -package() { - mkdir -p "$pkgdir" -} - -_py2() { - replaces="$pkgname" - _py python2 -} - -_py3() { - _py python3 -} - -_py() { - local python="$1" - pkgdesc="$pkgdesc (for $python)" - install_if="$pkgname=$pkgver-r$pkgrel $python" - - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" -} - -sha512sums="ac989fcbfa857f86fa5cd6c054a2f5e7bd2d7ccaf345950062dd70542e5e4ae5d179cda58e721f54b889549c63cbdfc6ed985a35f767dbbd3db4577fdc592ec6 distorm3-3.3.4.zip" diff --git a/testing/py3-distorm3/APKBUILD b/testing/py3-distorm3/APKBUILD new file mode 100644 index 0000000000..14603327fc --- /dev/null +++ b/testing/py3-distorm3/APKBUILD @@ -0,0 +1,29 @@ +# Contributor: Timo Teräs +# Maintainer: Timo Teräs +pkgname=py3-distorm3 +_pkgname=distorm3 +pkgver=3.3.4 +pkgrel=1 +pkgdesc="The goal of diStorm3 is to decode x86/AMD64 binary streams and return a structure that describes each instruction" +url="https://pypi.python.org/pypi/distorm3" +arch="all" +license="MIT" +depends="python3" +makedepends="py3-setuptools" +source="https://github.com/gdabah/distorm/releases/download/v$pkgver/distorm3-$pkgver.zip" +builddir="$srcdir/${pkgname/py3-/}-$pkgver" + +replaces="py-distorm3" # Backwards compatibility +provides="py-distorm3=$pkgver-r$pkgrel" # Backwards compatibility + +build() { + cd "$builddir" + python3 setup.py build +} + +package() { + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="ac989fcbfa857f86fa5cd6c054a2f5e7bd2d7ccaf345950062dd70542e5e4ae5d179cda58e721f54b889549c63cbdfc6ed985a35f767dbbd3db4577fdc592ec6 distorm3-3.3.4.zip" -- cgit v1.2.3