19 lines
537 B
Plaintext
19 lines
537 B
Plaintext
|
# Description: Getting image size from png/jpeg/jpeg2000/gif file.
|
||
|
# URL: https://github.com/shibukawa/imagesize_py/
|
||
|
# Maintainer: John Vogel, jvogel4 at stny dot rr dot com
|
||
|
# Depends on: python3-setuptools
|
||
|
|
||
|
name=python3-imagesize
|
||
|
version=1.1.0
|
||
|
release=1
|
||
|
source=(https://github.com/shibukawa/imagesize_py/archive/$version/${name#*-}-$version.tar.gz)
|
||
|
|
||
|
build() {
|
||
|
cd ${name#*-}_py-$version
|
||
|
|
||
|
/usr/bin/python3 setup.py build
|
||
|
/usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
|
||
|
|
||
|
chmod -R go-w,a+r,u+w $PKG
|
||
|
}
|