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

34 lines
957 B
Plaintext
Raw Normal View History

2018-06-09 00:06:58 +02:00
# Tanım: Python Görüntüleme Kitaplığı (PIL) çatalı
# URL: http://python-imaging.github.io/
# Paketçi: milisarge
# Gerekler: python3 python3-setuptools lcms libwebp tk sane openjpeg
2018-08-01 09:21:57 +02:00
# Grup: kütüphane
2018-06-09 00:06:58 +02:00
isim=python3-pillow
surum=4.2.1
_sanever=2.8.3
_appisim=Pillow
devir=1
2018-08-01 09:21:57 +02:00
kaynak=(https://files.pythonhosted.org/packages/source/P/$_appisim/$_appisim-$surum.tar.gz
2018-06-09 00:06:58 +02:00
https://github.com/python-pillow/Sane/archive/v$_sanever.tar.gz)
derle() {
cd $SRC
sed -i "s|os.path.join|'../libImaging', &|" $SRC/Sane-$_sanever/setup.py
2018-08-01 09:21:57 +02:00
cp -r $SRC/Sane-${_sanever} $SRC/${_appisim}-$surum/Sane
2018-06-09 00:06:58 +02:00
cd Pillow-$surum
python3 setup.py install --prefix=/usr --root=$PKG
cd Sane
python3 setup.py install --prefix=/usr --root=$PKG
cd ../libImaging
install -dm755 $PKG/usr/include/python3.5m
install -m644 -t $PKG/usr/include/python3.5m *.h
cd $PKG/usr/bin
for f in *.py; do
mv $f "${f%.py}2"
done
}