Guest User

2020.3.1 intellij-ce

a guest
Jan 5th, 2021
342
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Amr Hassan <amr.hassan at gmail dot com>
  2.  
  3. pkgname=intellij-idea-ce
  4. _pkgname=idea-IC
  5. _buildver=203.6682.168
  6. _veryear=2020
  7. _verrelease=3.1
  8. pkgver=${_veryear}.${_verrelease}
  9. pkgrel=1
  10. pkgdesc="Intellij Idea IDE (community version) with Intellij JDK"
  11. arch=('any')
  12. options=(!strip)
  13. url="http://www.jetbrains.com/idea/"
  14. license=('Apache2')
  15. depends=('giflib' 'libxtst')
  16. source=("https://download.jetbrains.com/idea/ideaIC-${pkgver}.tar.gz")
  17.  
  18. package() {
  19. cd "$srcdir"
  20. mkdir -p "${pkgdir}/opt/${pkgname}"
  21. cp -R "${srcdir}/idea-IC-$_buildver/"* "${pkgdir}/opt/${pkgname}"
  22. if [[ $CARCH = 'i686' ]]; then
  23. rm -f "${pkgdir}/opt/${pkgname}/bin/libyjpagent-linux64.so"
  24. rm -f "${pkgdir}/opt/${pkgname}/bin/fsnotifier64"
  25. fi
  26. (
  27. cat <<EOF
  28. [Desktop Entry]
  29. Version=$pkgver
  30. Type=Application
  31. Name=IntelliJ IDEA Community
  32. Comment=Intelligent Java IDE
  33. Exec="/opt/$pkgname/bin/idea.sh" %f
  34. Icon=/opt/$pkgname/bin/idea.png
  35. Comment=$pkgdesc
  36. Categories=Development;IDE;
  37. Terminal=false
  38. StartupNotify=true
  39. StartupWMClass=jetbrains-idea-ce
  40. EOF
  41. ) > "${srcdir}/${pkgname}.desktop"
  42.  
  43. mkdir -p "${pkgdir}/usr/bin/"
  44. mkdir -p "${pkgdir}/usr/share/applications/"
  45. mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}/"
  46. install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/"
  47. for i in $(ls $srcdir/idea-IC-$_buildver/license/ ); do
  48. ln -sf "/opt/${pkgname}/license/$i" "${pkgdir}/usr/share/licenses/${pkgname}/$i"
  49. done
  50. ln -s "/opt/${pkgname}/bin/idea.sh" "${pkgdir}/usr/bin/idea-ce-eap"
  51. }
  52.  
  53. md5sums=('4f3815556223759d7965e0663295c6d7')
  54.  
RAW Paste Data