void-packages/srcpkgs/python-imagesize/template

32 lines
842 B
Bash

# Template file for 'python-imagesize'
pkgname=python-imagesize
version=1.1.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=f3832918bc3c66617f92e35f5d70729187676313caa60c187eb0f28b8fe5e3b5
post_install() {
vlicense LICENSE.rst
}
python3-imagesize_package() {
noarch=yes
depends="python3"
pycompile_module="imagesize.py"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.rst
}
}