[arch-commits] Commit in python-imagesize/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Thu Oct 29 18:57:22 UTC 2020
Date: Thursday, October 29, 2020 @ 18:57:21
Author: eschwartz
Revision: 736570
upgpkg: python-imagesize 1.2.0-2: drop python2, last remaining user is gone from the repos
Modified:
python-imagesize/trunk/PKGBUILD
----------+
PKGBUILD | 28 +++++-----------------------
1 file changed, 5 insertions(+), 23 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-10-29 18:53:08 UTC (rev 736569)
+++ PKGBUILD 2020-10-29 18:57:21 UTC (rev 736570)
@@ -1,7 +1,6 @@
-pkgbase=python-imagesize
-pkgname=('python-imagesize' 'python2-imagesize')
+pkgname=python-imagesize
pkgver=1.2.0
-pkgrel=1
+pkgrel=2
pkgdesc='Getting image size from png/jpeg/jpeg2000/gif file'
url='https://github.com/shibukawa/imagesize_py'
@@ -8,7 +7,8 @@
arch=('any')
license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/i/imagesize/imagesize-$pkgver.tar.gz")
@@ -15,35 +15,17 @@
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
}
check() {
cd "$srcdir"/imagesize-$pkgver
python -m unittest discover -v
-
- cd "$srcdir"/imagesize-$pkgver-py2
- python2 -m unittest discover -v
}
-package_python-imagesize() {
- depends=('python')
-
+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
}
-
-package_python2-imagesize() {
- depends=('python2')
-
- cd imagesize-$pkgver-py2
- python2 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