summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
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
}