summaryrefslogtreecommitdiff
path: root/user/py3-imagesize
diff options
context:
space:
mode:
Diffstat (limited to 'user/py3-imagesize')
-rw-r--r--user/py3-imagesize/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/user/py3-imagesize/APKBUILD b/user/py3-imagesize/APKBUILD
new file mode 100644
index 000000000..c47afd26f
--- /dev/null
+++ b/user/py3-imagesize/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Brandon Bergren <git@bdragon.rtk0.net>
+# Maintainer: Brandon Bergren <git@bdragon.rtk0.net>
+pkgname=py3-imagesize
+_pkgname=imagesize
+pkgver=1.1.0
+pkgrel=0
+pkgdesc="Parse image file header and return image size"
+url="https://pypi.python.org/pypi/imagesize"
+arch="noarch"
+license="MIT"
+depends="python3"
+makedepends="python3-dev"
+#subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ python3 setup.py test
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+
+}
+
+sha512sums="11af71a5120decb88450d1bc7609e25e560e448fcaef72c273690ffe3ad06856e6a172e20738a8dd5650efe1ba8d599e797692eb5cae2b7d74a71f1f55438a03 py3-imagesize-1.1.0.tar.gz"