talimat 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Tanım: Sonraki nesil python üst düzey betik dili
  2. # URL: http://www.python.org
  3. # Paketçi: milisarge
  4. # Gerekler: libffi sqlite
  5. # Grup: geliştirme
  6. isim=python
  7. surum=2.7.11
  8. devir=1
  9. kaynak=(
  10. http://www.python.org/ftp/python/$surum/Python-$surum.tar.xz
  11. python.png)
  12. derle() {
  13. cd Python-$surum
  14. ./configure --prefix=/usr \
  15. --with-system-expat \
  16. --with-system-ffi \
  17. --enable-shared \
  18. --enable-unicode=ucs4
  19. make
  20. make DESTDIR=$PKG install
  21. chmod -v 755 $PKG/usr/lib/libpython2.7.so.1.0
  22. # Part of python3
  23. rm -f $PKG/usr/bin/2to3
  24. mkdir -p $PKG/usr/share/applications
  25. echo "[Desktop Entry]
  26. Categories=Development;Documentation
  27. Exec=xdg-open file:///usr/share/doc/python-$surum/index.html
  28. Icon=python
  29. StartupNotify=false
  30. Terminal=false
  31. Type=Application
  32. Name=Python Documentation
  33. Name[tr]=Dokumentasyon Python" > $PKG/usr/share/applications/python.desktop
  34. install -Dm644 $SRC/$isim.png \
  35. $PKG/usr/share/icons/hicolor/48x48/apps/$isim.png
  36. }