summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-03-01 16:12:13 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-03-01 16:12:13 (GMT)
commit44a3f131989362622b19b3931dd26bead6bb1292 (patch)
tree3e597ec1acc789e42345997b0868ef5806c1d25d /abs/core/python_modules
parent03e9f4368c9b23ff2a4ab74d4e97b7270e3bb536 (diff)
downloadlinhes_pkgbuild-44a3f131989362622b19b3931dd26bead6bb1292.zip
linhes_pkgbuild-44a3f131989362622b19b3931dd26bead6bb1292.tar.gz
linhes_pkgbuild-44a3f131989362622b19b3931dd26bead6bb1292.tar.bz2
python-imagesize: dep of python-sphinx
Diffstat (limited to 'abs/core/python_modules')
-rw-r--r--abs/core/python_modules/python-imagesize/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-imagesize/PKGBUILD b/abs/core/python_modules/python-imagesize/PKGBUILD
new file mode 100644
index 0000000..c8ee2da
--- /dev/null
+++ b/abs/core/python_modules/python-imagesize/PKGBUILD
@@ -0,0 +1,39 @@
+pkgbase=python-imagesize
+pkgname=('python-imagesize' 'python2-imagesize')
+pkgver=1.0.0
+pkgrel=1
+
+pkgdesc='Getting image size from png/jpeg/jpeg2000/gif file'
+url='https://github.com/shibukawa/imagesize_py'
+arch=('any')
+license=('MIT')
+
+makedepends=('python-setuptools' 'python2-setuptools')
+
+source=("https://files.pythonhosted.org/packages/source/i/imagesize/imagesize-$pkgver.tar.gz")
+
+md5sums=('9aa76df782f1df5b917794638b6bb6c2')
+
+build() {
+ cp -r imagesize-$pkgver imagesize-$pkgver-py2
+
+ cd "$srcdir"/imagesize-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/imagesize-$pkgver-py2
+ python2 setup.py build
+}
+
+package_python-imagesize() {
+ depends=('python')
+
+ cd imagesize-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-imagesize() {
+ depends=('python2')
+
+ cd imagesize-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}