milis/talimatname/genel/p/python3-pillow/talimat

33 lines
954 B
Plaintext
Raw Normal View History

2017-04-12 14:12:44 +02:00
# Description: Python Görüntüleme Kitaplığı (PIL) çatalı
2016-11-13 01:08:33 +01:00
# URL: http://python-imaging.github.io/
2017-09-22 23:37:56 +02:00
# Packager: milisarge
2016-11-13 01:08:33 +01:00
# Depends on: python3 python3-setuptools lcms libwebp tk sane openjpeg
name=python3-pillow
2017-09-22 23:37:56 +02:00
version=4.2.1
_sanever=2.8.3
2016-11-13 01:08:33 +01:00
_appname=Pillow
release=1
2017-09-22 23:37:56 +02:00
source=(https://files.pythonhosted.org/packages/source/P/$_appname/$_appname-$version.tar.gz
2016-11-13 01:08:33 +01:00
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
python3 setup.py install --prefix=/usr --root=$PKG
cd Sane
python3 setup.py install --prefix=/usr --root=$PKG
cd ../libImaging
2017-09-22 23:37:56 +02:00
install -dm755 $PKG/usr/include/python3.5m
install -m644 -t $PKG/usr/include/python3.5m *.h
2016-11-13 01:08:33 +01:00
cd $PKG/usr/bin
for f in *.py; do
mv $f "${f%.py}2"
done
}