30 lines
855 B
Bash
30 lines
855 B
Bash
# Template file for 'python-Pillow'
|
|
pkgname=python-Pillow
|
|
version=5.2.0
|
|
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>"
|
|
homepage="https://python-pillow.org/"
|
|
license="PIL"
|
|
distfiles="${PYPI_SITE}/P/Pillow/Pillow-${version}.tar.gz"
|
|
checksum=f8b3d413c5a8f84b12cd4c5df1d8e211777c9852c6be3ee9c094b626644d3eab
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-Pillow_package() {
|
|
pycompile_module="PIL"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|