# Tanım: Gelişmiş refactoring özellikleriyle Java, Groovy ve diğer programlama dilleri için IDE
# URL: https://www.jetbrains.com/idea/
# Paketçi: Cihan_Alkan 
# Gerekler: openjdk giflib xorg-libxtst xorg-libxft
# Grup: geliştirme

isim=intellij-idea-community-edition
surum=2018.1.6
_surum=181.5540.7
devir=1

kaynak=(https://download.jetbrains.com/idea/ideaIC-${surum}-no-jdk.tar.gz
        idea.desktop 
        idea.sh)

derle() {
  install -d -m755 "$PKG/"usr/share
  cp -a "idea-IC-$_surum" "$PKG"/usr/share/intellijidea-ce

  # make sure that all files are owned by root
  chown -R root:root "$PKG/usr/share"

  install -d -m755 "$PKG"/usr/bin
  install -D -m755 "$SRC"/idea.sh "$PKG"/usr/bin/idea.sh
  install -D -m644 "$SRC"/idea.desktop "$PKG"/usr/share/applications/idea.desktop
  install -D -m644 "$PKG"/usr/share/intellijidea-ce/bin/idea.png \
                   "$PKG"/usr/share/pixmaps/idea.png

  # workaround FS#40934
  sed -i 's|lcd|on|'  "$PKG"/usr/share/intellijidea-ce/bin/*.vmoptions

}