summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2020-11-15 22:00:51 (GMT)
committerBritney Fransen <brfransen@gmail.com>2020-11-15 22:00:51 (GMT)
commit021025fd98816d54e84aa76bfd1fa36f1d146798 (patch)
tree5381dcf67553dca91c6d8fe40c5c062e2e6c9509 /abs
parentd218046d74a9f8449384b3a5f469b09187bb9f97 (diff)
downloadlinhes_pkgbuild-021025fd98816d54e84aa76bfd1fa36f1d146798.zip
linhes_pkgbuild-021025fd98816d54e84aa76bfd1fa36f1d146798.tar.gz
linhes_pkgbuild-021025fd98816d54e84aa76bfd1fa36f1d146798.tar.bz2
python-imagesize: 1.2.0
Diffstat (limited to 'abs')
-rw-r--r--abs/core/python_modules/python-imagesize/PKGBUILD34
1 files changed, 13 insertions, 21 deletions
diff --git a/abs/core/python_modules/python-imagesize/PKGBUILD b/abs/core/python_modules/python-imagesize/PKGBUILD
index c8ee2da..6b20113 100644
--- a/abs/core/python_modules/python-imagesize/PKGBUILD
+++ b/abs/core/python_modules/python-imagesize/PKGBUILD
@@ -1,39 +1,31 @@
-pkgbase=python-imagesize
-pkgname=('python-imagesize' 'python2-imagesize')
-pkgver=1.0.0
-pkgrel=1
+pkgname=python-imagesize
+pkgver=1.2.0
+pkgrel=4
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')
+depends=('python')
+makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/i/imagesize/imagesize-$pkgver.tar.gz")
-md5sums=('9aa76df782f1df5b917794638b6bb6c2')
+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
+check() {
+ cd "$srcdir"/imagesize-$pkgver
+ python -m unittest discover -v
}
-package_python2-imagesize() {
- depends=('python2')
-
- cd imagesize-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
+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
}