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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 15:08:19 UTC 2021


    Date: Tuesday, November 30, 2021 @ 15:08:19
  Author: felixonmars
Revision: 1057773

archrelease: copy trunk to community-staging-any

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

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

Copied: python-imagesize/repos/community-staging-any/PKGBUILD (from rev 1057772, python-imagesize/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 15:08:19 UTC (rev 1057773)
@@ -0,0 +1,31 @@
+pkgname=python-imagesize
+pkgver=1.3.0
+pkgrel=2
+
+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=('cd1750d452385ca327479d45b64d9c7729ecf0b3969a58148298c77092261f9d')
+
+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