Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

webstorm-3.0.2

By: a guest on Feb 8th, 2012  |  syntax: None  |  size: 1.88 KB  |  views: 97  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Testuser_01 <arch@nico-siebler.de>
  2.  
  3. pkgname=webstorm
  4. _pkgname=WebStorm
  5. pkgver=3.0.2
  6. _pkgver=111.296
  7. pkgrel=1
  8. pkgdesc="The smartest JavaScript IDE. 30-day free trial."
  9. arch=('i686' 'x86_64')
  10. url="http://www.jetbrains.com/${pkgname}"
  11. license=('custom')
  12. depends=('java-runtime>=7')
  13. source=(http://download.jetbrains.com/webide/${_pkgname}-${pkgver}.tar.gz
  14.         webstorm
  15.         webstorm.desktop)
  16. sha256sums=('b568ac0c42ffe8bee97643c79cb65ff7b3f399ee631d0931cd33be3f8b543a7b'
  17.             '152a0b551a7955837d0e249b24c69d37282633751fc0f5fc68145edcb7c74711'
  18.             '3d706a595d0cd70fbec3620024c45a22e5b0f63f8fec8217613cdb6cf667d19a')
  19.  
  20. build() {
  21.   cd "${srcdir}"
  22.   mkdir -p "${pkgdir}/opt/${pkgname}" || return 1
  23.   cp -r ${srcdir}/${_pkgname}-${_pkgver}/* "${pkgdir}/opt/${pkgname}" || return 1
  24.   if [[ $CARCH = 'i686' ]]; then
  25.     rm -f "${pkgdir}/opt/${pkgname}/bin/libyjpagent64.so"
  26.     rm -f "${pkgdir}/opt/${pkgname}/bin/libbreakgen64.so"
  27.     rm -f "${pkgdir}/opt/${pkgname}/bin/fsnotifier64"
  28.   fi
  29.   if [[ $CARCH = 'x86_64' ]]; then
  30.     rm -f "${pkgdir}/opt/${pkgname}/bin/libyjpagent.so"
  31.     rm -f "${pkgdir}/opt/${pkgname}/bin/libbreakgen.so"
  32.     rm -f "${pkgdir}/opt/${pkgname}/bin/fsnotifier"
  33.   fi
  34.  
  35.   mkdir -p "${pkgdir}/usr/bin" || return 1
  36.   mkdir -p "${pkgdir}/usr/share/applications" || return 1
  37.   mkdir -p "${pkgdir}/usr/share/pixmaps" || return 1
  38.   mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" || return 1
  39.   install -m 644 "${startdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications" || return 1
  40.   install -m 644 "${pkgdir}/opt/${pkgname}/bin/webide.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png" || return 1
  41.   install -m 644 "${srcdir}/${_pkgname}-${_pkgver}/license/${_pkgname}_license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/${_pkgname}_license.txt" || return 1
  42.   install -m 755 "${startdir}/${pkgname}" "${pkgdir}/usr/bin" || return 1
  43. }