milis/talimatname/genel/p/python/talimat

44 lines
1.0 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Sonraki nesil python üst düzey betik dili
2016-02-24 01:27:23 +01:00
# URL: URL: http://www.python.org
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: libffi sqlite
2016-02-24 01:27:23 +01:00
_pybasever=2.7
2017-10-28 14:10:23 +02:00
isim=python
surum=2.7.11
devir=1
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
kaynak=(
http://www.python.org/ftp/python/$surum/Python-$surum.tar.xz
2016-02-24 01:27:23 +01:00
python.png)
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd Python-$surum
2016-02-24 01:27:23 +01:00
./configure --prefix=/usr \
--with-system-expat \
--with-system-ffi \
--enable-shared \
--enable-unicode=ucs4
make
make DESTDIR=$PKG install
chmod -v 755 $PKG/usr/lib/libpython2.7.so.1.0
# Part of python3
rm -f $PKG/usr/bin/2to3
mkdir -p $PKG/usr/share/applications
echo "[Desktop Entry]
Categories=Development;Documentation
2017-10-28 14:10:23 +02:00
Exec=xdg-open file:///usr/share/doc/python-$surum/index.html
2016-02-24 01:27:23 +01:00
Icon=python
StartupNotify=false
Terminal=false
Type=Application
Name=Python Documentation
2016-03-08 17:03:53 +01:00
Name[tr]=Dokumentasyon Python" > $PKG/usr/share/applications/python.desktop
2017-10-28 14:10:23 +02:00
install -Dm644 $SRC/$isim.png \
$PKG/usr/share/icons/hicolor/48x48/apps/$isim.png
2016-02-24 01:27:23 +01:00
}