48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
# Template file for 'python-Pillow'
|
|
pkgname=python-Pillow
|
|
version=4.1.1
|
|
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
|
|
zlib-devel tiff-devel freetype-devel lcms2-devel libwebp-devel libimagequant-devel"
|
|
depends="python-olefile"
|
|
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=00b6a5f28d00f720235a937ebc2f50f4292a5c7e2d6ab9a8b26153b625c4f431
|
|
|
|
pre_build() {
|
|
# don't install example scripts in /usr/bin
|
|
sed -i '/scripts=/d' setup.py
|
|
}
|
|
post_install() {
|
|
for f in Scripts/*; do
|
|
vsconf ${f}
|
|
done
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-Pillow_package() {
|
|
pycompile_module="PIL"
|
|
depends="python3-olefile"
|
|
replaces="python3.4-Pillow>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
for f in Scripts/*; do
|
|
vsconf ${f}
|
|
done
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-Pillow_package() {
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-Pillow>=${version}_${revision}"
|
|
}
|