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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 12:21:35 UTC 2020


    Date: Monday, November 9, 2020 @ 12:21:35
  Author: felixonmars
Revision: 746868

archrelease: copy trunk to community-staging-any

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

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

Copied: python-imagesize/repos/community-staging-any/PKGBUILD (from rev 746867, python-imagesize/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 12:21:35 UTC (rev 746868)
@@ -0,0 +1,31 @@
+pkgname=python-imagesize
+pkgver=1.2.0
+pkgrel=3
+
+pkgdesc='Getting image size from png/jpeg/jpeg2000/gif file'
+url='https://github.com/shibukawa/imagesize_py'
+arch=('any')
+license=('MIT')
+
+depends=('python')
+makedepends=('python-setuptools')
+
+source=("https://files.pythonhosted.org/packages/source/i/imagesize/imagesize-$pkgver.tar.gz")
+
+sha256sums=('b1f6b5a4eab1f73479a50fb79fcf729514a900c341d8503d62a62dbc4127a2b1')
+
+build() {
+  cd "$srcdir"/imagesize-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/imagesize-$pkgver
+  python -m unittest discover -v
+}
+
+package() {
+  cd imagesize-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
+}



More information about the arch-commits mailing list