SHARE
TWEET

clion-eap

a guest Aug 21st, 2015 185 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Raphaƫl Doursenaud <rdoursenaud@gpcsolutions.fr>
  2. # Contributor: Jesse Jaara <gmail.com: jesse.jaara>
  3.  
  4. # Uncomment if you want to disable compressing the package to save some time.
  5. #PKGEXT=.pkg.tar
  6.  
  7. pkgname=clion-eap
  8. _pkgname=clion
  9. pkgbuild=141.2348
  10. pkgrel=1.1
  11. pkgver=${pkgrel}
  12. pkgdesc="C/C++ IDE. 30-day evaluation."
  13. arch=('x86_64')
  14. options=(!strip)
  15. url="http://www.jetbrains.com/${_pkgname}"
  16. license=('custom')
  17. optdepends=(
  18.   'gdb: native debugger'
  19.   'cmake: native build system'
  20.   'gcc: GNU compiler'
  21.   'clang: LLVM compiler'
  22.   'biicode: C/C++ dependency manager'
  23. )
  24. source=("http://download.jetbrains.com/cpp/${_pkgname}-${pkgver}.tar.gz")
  25. sha512sums=('5b777dffb983f0779fad1c4c7cdeb23c42a01a350c28bd439a8df9b172e0b373c56d443e7a975bea225ffe3f984c7c6fa6f71d0022622b073925830379c7db08')
  26. noextract=("${_pkgname}-${pkgver}.tar.gz")
  27.  
  28. package() {
  29.   mkdir -p "${pkgdir}/opt/${pkgname}"
  30.   bsdtar --strip-components 1 -xf "${_pkgname}-${pkgver}.tar.gz" -C "${pkgdir}/opt/${pkgname}"
  31.  
  32.   # Uncomment to use system JRE, CMake and/or GDB instead of the bundled one(s)
  33.   #rm -r "${pkgdir}/opt/${pkgname}/jre"
  34.   #rm -r "${pkgdir}/opt/${pkgname}/bin/cmake"
  35.   #rm -r "${pkgdir}/opt/${pkgname}/bin/gdb"
  36.  
  37.   if [[ $CARCH = 'i686' ]]; then
  38.      rm -f "${pkgdir}/opt/${pkgname}/bin/libyjpagent-linux64.so"
  39.      rm -f "${pkgdir}/opt/${pkgname}/bin/fsnotifier64"
  40.   fi
  41.   if [[ $CARCH = 'x86_64' ]]; then
  42.      rm -f "${pkgdir}/opt/${pkgname}/bin/libyjpagent-linux.so"
  43.      rm -f "${pkgdir}/opt/${pkgname}/bin/fsnotifier"
  44.   fi
  45.  
  46. (
  47. cat <<EOF
  48. [Desktop Entry]
  49. Type=Application
  50. Version=1.1
  51. Name=CLion EAP
  52. GenericName=${_pkgname}
  53. Comment=${pkgdesc}
  54. Icon=${pkgname}
  55. Exec="/usr/bin/${pkgname}" %f
  56. Terminal=false
  57. Categories=Development;IDE;
  58. StartupNotify=true
  59. StartupWMClass=jetbrains-${_pkgname}
  60. EOF
  61. ) > ${startdir}/${pkgname}.desktop
  62.  
  63.   mkdir -p "${pkgdir}/usr/bin/"
  64.   mkdir -p "${pkgdir}/usr/share/applications/"
  65.   mkdir -p "${pkgdir}/usr/share/pixmaps/"
  66.   mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
  67.  
  68.   install -m 644 "${startdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/"
  69.  
  70.   ln -s "/opt/${pkgname}/bin/${_pkgname}.svg"                     "${pkgdir}/usr/share/pixmaps/${pkgname}.svg"
  71.   ln -s "/opt/${pkgname}/license/CLion_Preview_License.txt" "${pkgdir}/usr/share/licenses/${pkgname}"
  72.   ln -s "/opt/${pkgname}/bin/${_pkgname}.sh"                 "${pkgdir}/usr/bin/${pkgname}"
  73. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top