[arch-commits] Commit in python-imagesize/repos/community-any (PKGBUILD PKGBUILD)

Eli Schwartz eschwartz at archlinux.org
Thu Oct 29 18:57:36 UTC 2020


    Date: Thursday, October 29, 2020 @ 18:57:36
  Author: eschwartz
Revision: 736571

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-29 18:57:21 UTC (rev 736570)
+++ PKGBUILD	2020-10-29 18:57:36 UTC (rev 736571)
@@ -1,39 +0,0 @@
-pkgbase=python-imagesize
-pkgname=('python-imagesize' 'python2-imagesize')
-pkgver=1.2.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")
-
-sha256sums=('b1f6b5a4eab1f73479a50fb79fcf729514a900c341d8503d62a62dbc4127a2b1')
-
-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 --skip-build
-}
-
-package_python2-imagesize() {
-  depends=('python2')
-
-  cd imagesize-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}

Copied: python-imagesize/repos/community-any/PKGBUILD (from rev 736570, python-imagesize/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-10-29 18:57:36 UTC (rev 736571)
@@ -0,0 +1,31 @@
+pkgname=python-imagesize
+pkgver=1.2.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=('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