66 lines
2.1 KiB
Bash
66 lines
2.1 KiB
Bash
# Template file for 'python-Pillow'
|
|
pkgname=python-Pillow
|
|
version=3.2.0
|
|
revision=3
|
|
wrksrc="Pillow-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools python-tkinter python3-tkinter"
|
|
makedepends="python-devel python3-devel python-tkinter python3-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=64b0a057210c480aea99406c9391180cd866fc0fd8f0b53367e3af21b195784a
|
|
|
|
alternatives="
|
|
pil:createfontdatachunk:/usr/bin/createfontdatachunk.py2
|
|
pil:enhancer:/usr/bin/enhancer.py2
|
|
pil:explode:/usr/bin/explode.py2
|
|
pil:gifmaker:/usr/bin/gifmaker.py2
|
|
pil:painter:/usr/bin/painter.py2
|
|
pil:pilconvert:/usr/bin/pilconvert.py2
|
|
pil:pildriver:/usr/bin/pildriver.py2
|
|
pil:pilfile:/usr/bin/pilfile.py2
|
|
pil:pilfont:/usr/bin/pilfont.py2
|
|
pil:pilprint:/usr/bin/pilprint.py2
|
|
pil:player:/usr/bin/player.py2
|
|
pil:thresholder:/usr/bin/thresholder.py2
|
|
pil:viewer:/usr/bin/viewer.py2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-Pillow_package() {
|
|
alternatives="
|
|
pil:createfontdatachunk:/usr/bin/createfontdatachunk.py3
|
|
pil:enhancer:/usr/bin/enhancer.py3
|
|
pil:explode:/usr/bin/explode.py3
|
|
pil:gifmaker:/usr/bin/gifmaker.py3
|
|
pil:painter:/usr/bin/painter.py3
|
|
pil:pilconvert:/usr/bin/pilconvert.py3
|
|
pil:pildriver:/usr/bin/pildriver.py3
|
|
pil:pilfile:/usr/bin/pilfile.py3
|
|
pil:pilfont:/usr/bin/pilfont.py3
|
|
pil:pilprint:/usr/bin/pilprint.py3
|
|
pil:player:/usr/bin/player.py3
|
|
pil:thresholder:/usr/bin/thresholder.py3
|
|
pil:viewer:/usr/bin/viewer.py3"
|
|
pycompile_module="PIL"
|
|
replaces="python3.4-Pillow>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-Pillow_package() {
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-Pillow>=${version}_${revision}"
|
|
}
|