28 lines
831 B
Bash
28 lines
831 B
Bash
# Template file for 'python-imagesize'
|
|
pkgname=python-imagesize
|
|
version=0.7.1
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="imagesize-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
depends="python"
|
|
pycompile_module="imagesize"
|
|
short_desc="Python2 library to get image size from png/jpeg/jpeg2000/gif file"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://github.com/shibukawa/imagesize_py"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/i/imagesize/imagesize-${version}.tar.gz"
|
|
checksum=0ab2c62b87987e3252f89d30b7cedbec12a01af9274af9ffa48108f2c13c6062
|
|
|
|
python3.4-imagesize_package() {
|
|
noarch=yes
|
|
depends="python3.4"
|
|
pycompile_version="3.4"
|
|
pycompile_module="imagesize"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3.4
|
|
}
|
|
}
|