2020-04-28 03:14:19 +02:00
|
|
|
# Description: Getting image size from png/jpeg/jpeg2000/gif file.
|
2021-10-31 09:42:49 +01:00
|
|
|
# URL: https://github.com/shibukawa/imagesize_py/
|
2023-08-13 09:19:15 +02:00
|
|
|
# Maintainer: unmaintained
|
2021-10-31 09:42:49 +01:00
|
|
|
# Depends on: python3-setuptools
|
2020-04-28 03:14:19 +02:00
|
|
|
|
|
|
|
name=python3-imagesize
|
2022-07-02 15:08:40 +02:00
|
|
|
version=1.4.1
|
2020-04-28 03:14:19 +02:00
|
|
|
release=1
|
2023-08-13 09:19:15 +02:00
|
|
|
source=(https://files.pythonhosted.org/packages/source/i/imagesize/${name#*-}-$version.tar.gz)
|
2020-04-28 03:14:19 +02:00
|
|
|
|
|
|
|
build() {
|
2023-08-13 09:19:15 +02:00
|
|
|
cd ${name#*-}-$version
|
2020-04-28 03:14:19 +02:00
|
|
|
|
2023-08-13 09:19:15 +02:00
|
|
|
/usr/bin/python3 setup.py build
|
|
|
|
/usr/bin/python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
|
2020-04-28 03:14:19 +02:00
|
|
|
|
2023-08-13 09:19:15 +02:00
|
|
|
chmod -R go-w,a+r,u+w $PKG
|
2020-04-28 03:14:19 +02:00
|
|
|
}
|