python-Pillow: update to 5.0.0
- scripts no longer part of this package - olefile dependency is now optional
This commit is contained in:
parent
16ff79cc32
commit
eaad31337a
1 changed files with 3 additions and 15 deletions
|
@ -1,41 +1,29 @@
|
||||||
# Template file for 'python-Pillow'
|
# Template file for 'python-Pillow'
|
||||||
pkgname=python-Pillow
|
pkgname=python-Pillow
|
||||||
version=4.3.0
|
version=5.0.0
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="Pillow-${version}"
|
wrksrc="Pillow-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
pycompile_module="PIL"
|
pycompile_module="PIL"
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
makedepends="python-devel python3-devel libjpeg-turbo-devel libopenjpeg2-devel
|
makedepends="python-devel python3-devel libjpeg-turbo-devel libopenjpeg2-devel
|
||||||
tiff-devel freetype-devel lcms2-devel libwebp-devel libimagequant-devel libraqm-devel"
|
tiff-devel freetype-devel lcms2-devel libwebp-devel libimagequant-devel"
|
||||||
depends="python-olefile"
|
|
||||||
short_desc="Python Imaging Library (PIL) fork (Python2)"
|
short_desc="Python Imaging Library (PIL) fork (Python2)"
|
||||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
homepage="https://python-pillow.org/"
|
homepage="https://python-pillow.org/"
|
||||||
license="PIL"
|
license="PIL"
|
||||||
distfiles="${PYPI_SITE}/P/Pillow/Pillow-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/P/Pillow/Pillow-${version}.tar.gz"
|
||||||
checksum=a97c715d44efd5b4aa8d739b8fad88b93ed79f1b33fc2822d5802043f3b1b527
|
checksum=12f29d6c23424f704c66b5b68c02fe0b571504459605cfe36ab8158359b0e1bb
|
||||||
|
|
||||||
pre_build() {
|
|
||||||
# don't install example scripts in /usr/bin
|
|
||||||
sed -i '/scripts=/d' setup.py
|
|
||||||
}
|
|
||||||
post_install() {
|
post_install() {
|
||||||
for f in Scripts/*; do
|
|
||||||
vsconf ${f}
|
|
||||||
done
|
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3-Pillow_package() {
|
python3-Pillow_package() {
|
||||||
pycompile_module="PIL"
|
pycompile_module="PIL"
|
||||||
depends="python3-olefile"
|
|
||||||
short_desc="${short_desc/Python2/Python3}"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/python3*
|
vmove usr/lib/python3*
|
||||||
for f in Scripts/*; do
|
|
||||||
vsconf ${f}
|
|
||||||
done
|
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue