aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-img2pdf/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py-img2pdf/APKBUILD')
-rw-r--r--community/py-img2pdf/APKBUILD9
1 files changed, 8 insertions, 1 deletions
diff --git a/community/py-img2pdf/APKBUILD b/community/py-img2pdf/APKBUILD
index ee406c9aaf..4b06e8a0d4 100644
--- a/community/py-img2pdf/APKBUILD
+++ b/community/py-img2pdf/APKBUILD
@@ -2,13 +2,14 @@
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py-img2pdf
pkgver=0.2.4
-pkgrel=0
+pkgrel=1
pkgdesc="Convert images to PDF via direct JPEG inclusion"
url="https://gitlab.mister-muffin.de/josch/img2pdf"
arch="noarch"
license="LGPL"
depends="py-pillow"
makedepends="python2-dev python3-dev py-setuptools"
+checkdepends="py-pdfrw"
install=""
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="https://pypi.python.org/packages/7e/a2/4f06081f674920be757d894b4bab874e6a3b5227e730cb7618430b366e69/img2pdf-$pkgver.tar.gz"
@@ -20,6 +21,12 @@ build() {
python3 setup.py build
}
+check() {
+ cd "$builddir"
+ python2 setup.py test
+ python3 setup.py test
+}
+
package() {
mkdir -p "$pkgdir"
}