python3.7

This commit is contained in:
milisbir 2018-08-14 00:05:56 +03:00
parent b2afc2f7f0
commit fae11a6880
2 changed files with 6 additions and 21 deletions

View File

@ -1,33 +1,18 @@
# Tanım: Python Görüntüleme Kitaplığı (PIL) çatalı # Tanım: Python Görüntüleme Kitaplığı (PIL) çatalı
# URL: http://python-imaging.github.io/ # URL: http://python-imaging.github.io/
# Paketçi: milisarge # Paketçi: milisarge
# Gerekler: python3 python3-setuptools lcms libwebp tk sane openjpeg # Gerekler: python3 python3-setuptools lcms libwebp tk openjpeg
# Grup: kütüphane # Grup: kütüphane
isim=python3-pillow isim=python3-pillow
surum=5.2.0 surum=5.2.0
_sanever=2.8.3
_appisim=Pillow _appisim=Pillow
devir=1 devir=1
kaynak=(https://files.pythonhosted.org/packages/source/P/$_appisim/$_appisim-$surum.tar.gz kaynak=(https://files.pythonhosted.org/packages/source/P/$_appisim/$_appisim-$surum.tar.gz)
https://github.com/python-pillow/Sane/archive/v$_sanever.tar.gz)
derle() { derle() {
cd $SRC
sed -i "s|os.path.join|'../libImaging', &|" $SRC/Sane-$_sanever/setup.py
cp -r $SRC/Sane-${_sanever} $SRC/${_appisim}-$surum/Sane
cd Pillow-$surum cd Pillow-$surum
python3 setup.py build
python3 setup.py install --prefix=/usr --root=$PKG 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/"$(basename `ls -d /usr/lib/python3*`)"m
install -m644 -t $PKG/usr/include/"$(basename `ls -d /usr/lib/python3*`)"m *.h
cd $PKG/usr/bin
for f in *.py; do
mv $f "${f%.py}2"
done
} }

View File

@ -11,7 +11,7 @@ devir=1
kaynak=(http://sourceforge.net/projects/pyqt/files/sip/sip-$surum/sip-$surum.tar.gz ) kaynak=(http://sourceforge.net/projects/pyqt/files/sip/sip-$surum/sip-$surum.tar.gz )
derle() { derle() {
pysurum="$(basename `ls -d /usr/lib/python3*`)" pysurum="$(basename `ls -d /usr/lib/python3* | tail -n 1`)"
cd sip-$surum cd sip-$surum
python3 configure.py -b /usr/bin \ python3 configure.py -b /usr/bin \
-d /usr/lib/$pysurum/site-packages \ -d /usr/lib/$pysurum/site-packages \