aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/py3-pdfrw/APKBUILD (renamed from community/py-pdfrw/APKBUILD)37
1 files changed, 9 insertions, 28 deletions
diff --git a/community/py-pdfrw/APKBUILD b/community/py3-pdfrw/APKBUILD
index 75063b8a2d..02d6787050 100644
--- a/community/py-pdfrw/APKBUILD
+++ b/community/py3-pdfrw/APKBUILD
@@ -1,50 +1,31 @@
# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
-pkgname=py-pdfrw
+pkgname=py3-pdfrw
_pkgname=pdfrw
pkgver=0.4
-pkgrel=1
+pkgrel=2
pkgdesc="Python library that reads and writes PDFs"
url="https://github.com/pmaupin/pdfrw"
arch="noarch"
license="MIT"
-makedepends="python2-dev python3-dev py-setuptools"
-subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"
+depends="python3"
+makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/pmaupin/pdfrw/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
+replaces=py-pdfrw # Backwards compatibility
+provides=py-pdfrw=$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 (for $python)"
- depends="$depends $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
-}
-
-_py2() {
- _py python2
-}
-
-_py3() {
- _py python3
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="b80c703b0c72fd49af6fe8c206fd626c51e6786e3cf40f9f01ea9e8a5a0e15bedd08181fd808e96eb432f3a408112314706680bcc08e5d4ac273517538cd6608 py-pdfrw-0.4.tar.gz"
+sha512sums="b80c703b0c72fd49af6fe8c206fd626c51e6786e3cf40f9f01ea9e8a5a0e15bedd08181fd808e96eb432f3a408112314706680bcc08e5d4ac273517538cd6608 py3-pdfrw-0.4.tar.gz"