milis/talimatname/genel/python-pillow/talimat

33 lines
1012 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/
2016-11-13 01:08:33 +01:00
# Packager: alihan-ozturk28@hotmail.com
# Depends on: python python-setuptools lcms libwebp tk sane openjpeg
2016-02-24 01:27:23 +01:00
name=python-pillow
2016-11-13 01:08:33 +01:00
version=3.4.2
_sanever=2.8.2
_appname=Pillow
release=1
2016-02-24 01:27:23 +01:00
2016-11-13 01:08:33 +01:00
source=(https://pypi.python.org/packages/46/4f/94f6165052774839b4a4af0c72071aa528d5dc8cb8bc6bb43e24a55c10cc/Pillow-$version.tar.gz
https://github.com/python-pillow/Sane/archive/v$_sanever.tar.gz)
2016-02-24 01:27:23 +01:00
build() {
2016-11-13 01:08:33 +01: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 01:27:23 +01:00
cd Pillow-$version
2016-11-13 01:08:33 +01:00
python3 setup.py install --prefix=/usr --root=$PKG
2016-02-24 01:27:23 +01:00
cd Sane
2016-11-13 01:08:33 +01:00
python3 setup.py install --prefix=/usr --root=$PKG
2016-02-24 01:27:23 +01: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
}