43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# Template file for 'python-Pillow'
|
|
pkgname=python-Pillow
|
|
version=3.1.0
|
|
revision=1
|
|
wrksrc="Pillow-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools python-tkinter python3.4-tkinter"
|
|
makedepends="python-devel python3.4-devel python-tkinter python3.4-tkinter
|
|
libjpeg-turbo-devel libopenjpeg2-devel zlib-devel tiff-devel freetype-devel
|
|
lcms2-devel libwebp-devel tk-devel"
|
|
pycompile_module="PIL"
|
|
short_desc="Python Imaging Library (PIL) fork (Python2)"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://github.com/python-pillow/Pillow"
|
|
license="PIL"
|
|
distfiles="${PYPI_SITE}/P/Pillow/Pillow-${version}.tar.gz"
|
|
checksum=e15277f0c46347af1d5686c510c80c0a4c4fa4833493e73066f7bb8c1ed1b003
|
|
|
|
pre_build() {
|
|
sed -i '/^#!\//,1d' PIL/OleFileIO.py
|
|
}
|
|
post_install() {
|
|
rm -f ${DESTDIR}/usr/bin/*.py
|
|
# rename bins and remove .py suffix
|
|
for f in convert driver file font print; do
|
|
vbin build-2.7/scripts-2.7/pil${f}{.py,}
|
|
vbin build-3.4/scripts-3.4/pil${f}{.py,3.4}
|
|
done
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3.4-Pillow_package() {
|
|
pycompile_version="3.4"
|
|
pycompile_module="PIL"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/bin/*3.4
|
|
vmove usr/lib/python3.4
|
|
vlicense LICENSE
|
|
}
|
|
}
|