blob: a958e82e7d9dbaf31c7d02fa8192ef894b4366f9 (
plain)
1 # Description: Getting image size from png/jpeg/jpeg2000/gif file.
2 # URL: https://github.com/shibukawa/imagesize_py/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: python3-setuptools
5
6 name=python3-imagesize
7 version=1.4.1
8 release=1
9 source=(#https://github.com/shibukawa/imagesize_py/archive/$version/${name#*-}-$version.tar.gz
10 https://files.pythonhosted.org/packages/source/i/imagesize/${name#*-}-$version.tar.gz)
11
12 build() {
13 #cd ${name#*-}_py-$version
14 cd ${name#*-}-$version
15
16 /usr/bin/python3 setup.py build
17 /usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
18
19 chmod -R go-w,a+r,u+w $PKG
20 }
|