void-packages/srcpkgs/python-imagesize/template

27 lines
777 B
Bash

# Template file for 'python-imagesize'
pkgname=python-imagesize
version=1.0.0
revision=1
noarch=yes
wrksrc="imagesize-${version}"
build_style=python-module
pycompile_module="imagesize.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
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=5b326e4678b6925158ccc66a9fa3122b6106d7c876ee32d7de6ce59385b96315
python3-imagesize_package() {
noarch=yes
depends="python3"
pycompile_module="imagesize.py"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}