aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-08-13 23:48:10 +0300
committerprspkt <prspkt@protonmail.com>2019-08-13 23:51:00 +0300
commit28f1749d215cd91288b2cc2cb40e723b716c37a8 (patch)
tree7df6d2de01027cc5fdd7c269f24e121e888c8b5e
parenta6edb8a5e1dce71fcae78ef21eb42c07ed46b439 (diff)
downloadaports-28f1749d215cd91288b2cc2cb40e723b716c37a8.tar.bz2
aports-28f1749d215cd91288b2cc2cb40e723b716c37a8.tar.xz
community/py-pypdf2: drop python2
Signed-off-by: prspkt <prspkt@protonmail.com>
-rw-r--r--community/py-pypdf2/APKBUILD47
-rw-r--r--community/py3-pypdf2/APKBUILD27
2 files changed, 27 insertions, 47 deletions
diff --git a/community/py-pypdf2/APKBUILD b/community/py-pypdf2/APKBUILD
deleted file mode 100644
index 49af1b4bdf..0000000000
--- a/community/py-pypdf2/APKBUILD
+++ /dev/null
@@ -1,47 +0,0 @@
-# Contributor: Francesco Colista <fcolista@alpinelinux.org>
-# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
-pkgname=py-pypdf2
-_pkgname=PyPDF2
-pkgver=1.26.0
-pkgrel=3
-pkgdesc="A Pure-Python library built as a PDF toolkit."
-url=" http://mstamy2.github.com/PyPDF2"
-arch="noarch"
-license="BSD"
-depends=""
-makedepends="python2-dev py-setuptools python3-dev"
-install=""
-subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-builddir="$srcdir"/$_pkgname-$pkgver
-
-build() {
- cd "$builddir"
- python2 setup.py build || return 1
- python3 setup.py build || return 1
-}
-
-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() {
- _py python2
- replaces="$pkgname"
-}
-
-_py3() {
- _py python3
-}
-
-md5sums="2301acc0ecbab0633d4c9b883d50ee5e PyPDF2-1.26.0.tar.gz"
-sha256sums="e28f902f2f0a1603ea95ebe21dff311ef09be3d0f0ef29a3e44a932729564385 PyPDF2-1.26.0.tar.gz"
-sha512sums="7b427f1d099dcd687a718fb8d86e6f677ad45257414c6367e4dfacd8dfef7e3dbe3816027359868764981f36a30721f1731b4c23cbe2f35cfab1c64fb290b034 PyPDF2-1.26.0.tar.gz"
diff --git a/community/py3-pypdf2/APKBUILD b/community/py3-pypdf2/APKBUILD
new file mode 100644
index 0000000000..7423df41a1
--- /dev/null
+++ b/community/py3-pypdf2/APKBUILD
@@ -0,0 +1,27 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=py3-pypdf2
+_pkgname=PyPDF2
+pkgver=1.26.0
+pkgrel=4
+pkgdesc="Pure-Python library built as a PDF toolkit"
+url="https://github.com/mstamy2/PyPDF2"
+arch="noarch"
+license="BSD-3-Clause"
+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-pypdf2 # Backwards compatibility
+provides=py-pypdf2=$pkgver-r$pkgrel # Backwards compatibility
+
+build() {
+ python3 setup.py build
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="7b427f1d099dcd687a718fb8d86e6f677ad45257414c6367e4dfacd8dfef7e3dbe3816027359868764981f36a30721f1731b4c23cbe2f35cfab1c64fb290b034 PyPDF2-1.26.0.tar.gz"