diff options
author | prspkt <prspkt@protonmail.com> | 2019-06-24 21:05:47 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-06-24 21:28:20 +0300 |
commit | a1cf4add5e268835abda0adda8ff94569020df0c (patch) | |
tree | 6c7259946d1fb1a526c74b42c80951ca44880349 /testing | |
parent | ca896ff5f3d4088cb6c5f6cdc04f7368ef34e214 (diff) | |
download | aports-a1cf4add5e268835abda0adda8ff94569020df0c.tar.bz2 aports-a1cf4add5e268835abda0adda8ff94569020df0c.tar.xz |
testing/py-audioread: drop python2
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py3-audioread/APKBUILD (renamed from testing/py-audioread/APKBUILD) | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/testing/py-audioread/APKBUILD b/testing/py3-audioread/APKBUILD index 450bf98391..f281d13930 100644 --- a/testing/py-audioread/APKBUILD +++ b/testing/py3-audioread/APKBUILD @@ -1,6 +1,6 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> # Maintainer: -pkgname=py-audioread +pkgname=py3-audioread _pkgname=audioread pkgver=2.1.5 pkgrel=2 @@ -8,41 +8,24 @@ pkgdesc="Cross-library audio decoding for Python" url="https://github.com/sampsyo/audioread" arch="noarch" license="MIT" -depends="python2 python3" -makedepends="python2-dev python3-dev" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +depends="python3" +makedepends="py3-setuptools" options="!check" # upstream provides no testsuite source="https://files.pythonhosted.org/packages/source/a/audioread/audioread-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" +replaces="py-audioread" # Backwards compatibility +provides="py-audioread=$pkgver-r$pkgrel" # Backwards compatibility + 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)" - depends="$depends $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="7589b03f9f4b11475e97ab9d114ab1bf08be8e5f9d20f3db70c9d421607f99ed66747a65d1b5e124595e520ab698e17ae9fb9a2eb453ee904ee2b6debf8b3a5c audioread-2.1.5.tar.gz" |