talimat 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Tanım: Profesyonel Geliştiriciler için Python IDE
  2. # URL: http://www.jetbrains.com/pycharm/
  3. # Paketçi: Oltulu
  4. # Gerekler: giflib glibc openjdk freefont-ttf python3-setuptools python-setuptools
  5. # Grup: geliştirme
  6. isim=pycharm
  7. surum=2017.3.1
  8. devir=1
  9. kaynak=(https://download.jetbrains.com/python/pycharm-community-${surum}.tar.gz)
  10. derle() {
  11. cd pycharm-community-${surum}
  12. python helpers/pydev/setup_cython.py build_ext --inplace
  13. python3 helpers/pydev/setup_cython.py build_ext --inplace
  14. rm -rf bin/fsnotifier{,-arm} lib/libpty/linux/x86
  15. # Başlatıcı
  16. mkdir -pv $PKG/usr/share/applications &&
  17. cat > $PKG/usr/share/applications/$isim.desktop << "EOF" &&
  18. [Desktop Entry]
  19. Version=1.0
  20. Type=Application
  21. Name=PyCharm Topluluk Sürümü
  22. Comment=Profesyonel Geliştiriciler için Python IDE
  23. Exec=/usr/bin/pycharm %f
  24. Icon=pycharm
  25. Terminal=false
  26. StartupNotify=true
  27. StartupWMClass=jetbrains-pycharm-ce
  28. Categories=Development;IDE;Python;
  29. EOF
  30. install -dm 755 "${PKG}"/usr/{bin,share/{applications,doc,licenses,pixmaps,pycharm}}
  31. cp -dr --no-preserve='ownership' bin helpers lib plugins "${PKG}"/usr/share/pycharm/
  32. cp -dr --no-preserve='ownership' help "${PKG}"/usr/share/doc/pycharm/
  33. cp -dr --no-preserve='ownership' license "${PKG}"/usr/share/licenses/pycharm/
  34. ln -s /usr/share/pycharm/bin/pycharm.sh $PKG/usr/bin/pycharm
  35. ln -s /usr/share/pycharm/bin/pycharm.png "${PKG}"/usr/share/pixmaps/
  36. }