milis/talimatname/genel/python-pillow/talimat

33 lines
966 B
Text
Raw Normal View History

2017-04-13 10:27:08 +03:00
# Description: Python Görüntüleme Kitaplığı (PIL) çatalı
2016-02-24 02:27:23 +02:00
# URL: http://python-imaging.github.io/
2017-07-02 22:43:41 +03:00
# Packager: milisarge
2016-11-13 02:08:33 +02:00
# Depends on: python python-setuptools lcms libwebp tk sane openjpeg
2016-02-24 02:27:23 +02:00
name=python-pillow
2017-07-02 22:43:41 +03:00
version=4.1.1
_sanever=2.8.3
2016-11-13 02:08:33 +02:00
_appname=Pillow
release=1
2016-02-24 02:27:23 +02:00
2017-07-02 22:43:41 +03:00
source=(https://files.pythonhosted.org/packages/source/P/Pillow/Pillow-$version.tar.gz
2016-11-13 02:08:33 +02:00
https://github.com/python-pillow/Sane/archive/v$_sanever.tar.gz)
2016-02-24 02:27:23 +02:00
build() {
2016-11-13 02:08:33 +02:00
cd $SRC
sed -i "s|os.path.join|'../libImaging', &|" $SRC/Sane-$_sanever/setup.py
cp -r $SRC/Sane-${_sanever} $SRC/${_appname}-$version/Sane
2016-02-24 02:27:23 +02:00
cd Pillow-$version
2017-07-02 22:43:41 +03:00
python2 setup.py install --prefix=/usr --root=$PKG
2016-02-24 02:27:23 +02:00
cd Sane
2017-07-02 22:43:41 +03:00
python2 setup.py install --prefix=/usr --root=$PKG
2016-02-24 02:27:23 +02:00
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
}