diff options
-rw-r--r-- | testing/py-isbn/APKBUILD | 55 | ||||
-rw-r--r-- | testing/py3-pyisbn/APKBUILD | 27 |
2 files changed, 27 insertions, 55 deletions
diff --git a/testing/py-isbn/APKBUILD b/testing/py-isbn/APKBUILD deleted file mode 100644 index 96e0e5723a..0000000000 --- a/testing/py-isbn/APKBUILD +++ /dev/null @@ -1,55 +0,0 @@ -# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> -# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-isbn -_pkgname=pyisbn -pkgver=1.1.0 -pkgrel=1 -pkgdesc="A module for working with 10- and 13-digit ISBNs" -url="https://github.com/JNRowe/pyisbn" -arch="noarch" -license="GPL-3.0-or-later" -makedepends="python2-dev python3-dev py-setuptools" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" -builddir="$srcdir"/$_pkgname-$pkgver - -prepare() { - local i - cd "$builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - -build() { - cd "$builddir" - python2 setup.py build || return 1 - python3 setup.py build || return 1 -} - -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" -} - -sha512sums="9c54199d4a152b7e0ff32ba71b0479dbbbd426a3a1e5b7b08d8619cdae445e13562fd682c9f4c5857075b4c9b50731a715402d8c9463ad48046013c7defcbc28 pyisbn-1.1.0.tar.gz" diff --git a/testing/py3-pyisbn/APKBUILD b/testing/py3-pyisbn/APKBUILD new file mode 100644 index 0000000000..aedb2b9889 --- /dev/null +++ b/testing/py3-pyisbn/APKBUILD @@ -0,0 +1,27 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py3-pyisbn +_pkgname=pyisbn +pkgver=1.1.0 +pkgrel=1 +pkgdesc="A module for working with 10- and 13-digit ISBNs" +url="https://github.com/JNRowe/pyisbn" +arch="noarch" +license="GPL-3.0-or-later" +depends="python3" +makedepends="py3-setuptools" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver + +replaces=py-isbn # Backwards compatibility +provides=py-isbn=$pkgver-r$pkgrel # Backwards compatibility + +build() { + python3 setup.py build +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="9c54199d4a152b7e0ff32ba71b0479dbbbd426a3a1e5b7b08d8619cdae445e13562fd682c9f4c5857075b4c9b50731a715402d8c9463ad48046013c7defcbc28 pyisbn-1.1.0.tar.gz" |