milis/talimatname/genel/python-pillow/talimat

33 lines
966 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Description: Python Görüntüleme Kitaplığı (PIL) çatalı
# URL: http://python-imaging.github.io/
# Packager: milisarge
# Depends on: python python-setuptools lcms libwebp tk sane openjpeg
name=python-pillow
version=4.1.1
_sanever=2.8.3
_appname=Pillow
release=1
source=(https://files.pythonhosted.org/packages/source/P/Pillow/Pillow-$version.tar.gz
https://github.com/python-pillow/Sane/archive/v$_sanever.tar.gz)
build() {
cd $SRC
sed -i "s|os.path.join|'../libImaging', &|" $SRC/Sane-$_sanever/setup.py
cp -r $SRC/Sane-${_sanever} $SRC/${_appname}-$version/Sane
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
}