aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pdfrw
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-pdfrw')
-rw-r--r--community/py3-pdfrw/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/community/py3-pdfrw/APKBUILD b/community/py3-pdfrw/APKBUILD
new file mode 100644
index 0000000000..02d6787050
--- /dev/null
+++ b/community/py3-pdfrw/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
+# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
+pkgname=py3-pdfrw
+_pkgname=pdfrw
+pkgver=0.4
+pkgrel=2
+pkgdesc="Python library that reads and writes PDFs"
+url="https://github.com/pmaupin/pdfrw"
+arch="noarch"
+license="MIT"
+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() {
+ python3 setup.py build
+}
+
+check() {
+ python3 setup.py check
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="b80c703b0c72fd49af6fe8c206fd626c51e6786e3cf40f9f01ea9e8a5a0e15bedd08181fd808e96eb432f3a408112314706680bcc08e5d4ac273517538cd6608 py3-pdfrw-0.4.tar.gz"