Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 30th, 2012  |  syntax: None  |  size: 2.14 KB  |  views: 48  |  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. pkgname=webstorm
  2. _pkgname=WebStorm
  3. pkgver=4.0.1
  4. _pkgver=117.257
  5. pkgrel=1
  6. pkgdesc="Lightweight HTML, JavaScript and CSS editor."
  7. arch=('i686' 'x86_64')
  8. url="http://www.jetbrains.com/${pkgname}"
  9. license=('custom')
  10. depends=('java-runtime')
  11. source=(http://download.jetbrains.com/webide/${_pkgname}-${pkgver}.tar.gz
  12.         webstorm
  13.         webstorm.desktop)
  14. md5sums=('f90539de34c3866361bf480992e530db'
  15.          'ebdae6cf33d6ee7754f9bb09ef7316ff'
  16.          'c59aa9a3c88a22843991e336d8b9c358')
  17. sha512sums=('c9e0e21ab620b279ea618fb94f27b48ff4fe80d38be220deb3857ee0d0f3bcf3ee93ce2a493a3bfdcb869bea0328633f003dc93b686d697c598e56fc8bf52b91'
  18.             'a2b72456858e3d16c2a909b16f2e29b40f7193e94f79798cc45e11c816b929185f61985cdac1aef3e106bb878216900c762cc28e5d3f7586ca304efd2fcbecdc'
  19.             '001eba903c7c2e17591d806f08f159821990d5c345f957bc721afb982ce3c4c860c61eb6d4c0588221015d30276f052909c9218e88831d8c8b70cb6b05725137')
  20.  
  21. build() {
  22.   cd "${srcdir}"
  23.   mkdir -p "${pkgdir}/opt/${pkgname}" || return 1
  24.   cp -r ${srcdir}/${_pkgname}-${_pkgver}/* "${pkgdir}/opt/${pkgname}" || return 1
  25.   if [[ $CARCH = 'i686' ]]; then
  26.     rm -f "${pkgdir}/opt/${pkgname}/bin/libyjpagent64.so"
  27.     rm -f "${pkgdir}/opt/${pkgname}/bin/libbreakgen64.so"
  28.     rm -f "${pkgdir}/opt/${pkgname}/bin/fsnotifier64"
  29.   fi
  30.   if [[ $CARCH = 'x86_64' ]]; then
  31.     rm -f "${pkgdir}/opt/${pkgname}/bin/libyjpagent.so"
  32.     rm -f "${pkgdir}/opt/${pkgname}/bin/libbreakgen.so"
  33.     rm -f "${pkgdir}/opt/${pkgname}/bin/fsnotifier"
  34.   fi
  35.  
  36.   mkdir -p "${pkgdir}/usr/bin" || return 1
  37.   mkdir -p "${pkgdir}/usr/share/applications" || return 1
  38.   mkdir -p "${pkgdir}/usr/share/pixmaps" || return 1
  39.   mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" || return 1
  40.   install -m 644 "${startdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications" || return 1
  41.   install -m 644 "${pkgdir}/opt/${pkgname}/bin/webide.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png" || return 1
  42.   install -m 644 "${srcdir}/${_pkgname}-${_pkgver}/license/${_pkgname}_license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/${_pkgname}_license.txt" || return 1
  43.   install -m 755 "${startdir}/${pkgname}" "${pkgdir}/usr/bin" || return 1
  44. }
clone this paste RAW Paste Data