void-packages/srcpkgs/python-Pillow/template
2020-02-22 16:25:54 +01:00

31 lines
948 B
Bash

# Template file for 'python-Pillow'
pkgname=python-Pillow
version=6.2.2
revision=1
wrksrc="Pillow-${version}"
build_style=python-module
pycompile_module="PIL"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel libjpeg-turbo-devel libopenjpeg2-devel
tiff-devel freetype-devel lcms2-devel libwebp-devel libimagequant-devel"
short_desc="Python Imaging Library (PIL) fork (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="custom:PIL"
homepage="https://python-pillow.org/"
changelog="https://raw.githubusercontent.com/python-pillow/Pillow/master/CHANGES.rst"
distfiles="${PYPI_SITE}/P/Pillow/Pillow-${version}.tar.gz"
checksum=db9ff0c251ed066d367f53b64827cc9e18ccea001b986d08c265e53625dab950
post_install() {
vlicense LICENSE
}
python3-Pillow_package() {
pycompile_module="PIL"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}