milis/talimatname/genel/python-pillow/talimat

27 lines
702 B
Plaintext
Raw Normal View History

2016-02-24 01:27:23 +01:00
# Description: Python Imaging Library (PIL) fork
# URL: http://python-imaging.github.io/
# Packager: alienus at nutyx dot org
# Depends on: python python-setuptools lcms libwebp tk sane python-qt4
name=python-pillow
version=2.4.0
release=2
source=(
http://pypi.python.org/packages/source/P/Pillow/Pillow-$version.zip)
build() {
cd Pillow-$version
python2 setup.py install --prefix=/usr --root=$PKG
cd Sane
python2 setup.py install --prefix=/usr --root=$PKG
cd ../libImaging
install -dm755 $PKG/usr/include/python2.7
install -m644 -t $PKG/usr/include/python2.7 *.h
# rename /bin/*.py to *
cd $PKG/usr/bin
for f in *.py; do
mv $f "${f%.py}2"
done
}