[arch-commits] Commit in python-imagesize/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Jun 30 05:42:58 UTC 2018


    Date: Saturday, June 30, 2018 @ 05:42:58
  Author: felixonmars
Revision: 347910

archrelease: copy trunk to community-staging-any

Added:
  python-imagesize/repos/community-staging-any/
  python-imagesize/repos/community-staging-any/PKGBUILD
    (from rev 347909, python-imagesize/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: python-imagesize/repos/community-staging-any/PKGBUILD (from rev 347909, python-imagesize/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 05:42:58 UTC (rev 347910)
@@ -0,0 +1,39 @@
+pkgbase=python-imagesize
+pkgname=('python-imagesize' 'python2-imagesize')
+pkgver=1.0.0
+pkgrel=2
+
+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
+}



More information about the arch-commits mailing list