talimat 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Description: Sonraki nesil python üst düzey betik dili
  2. # URL: URL: http://www.python.org
  3. # Packager: milisarge
  4. # Depends on: libffi sqlite
  5. _pybasever=2.7
  6. name=python
  7. version=2.7.11
  8. release=1
  9. source=(
  10. http://www.python.org/ftp/python/$version/Python-$version.tar.xz
  11. python.png)
  12. build() {
  13. cd Python-$version
  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-$version/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/$name.png \
  35. $PKG/usr/share/icons/hicolor/48x48/apps/$name.png
  36. }