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

RubyMine 5.0 PKGBUILD

By: msx on Feb 8th, 2013  |  syntax: Bash  |  size: 2.31 KB  |  views: 98  |  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: Alexsandr Pavlov <kidoz at mail dot ru>
  2. # Contributor: Ernie Brodeur <ebrodeur@ujami.net>
  3. # Contributor: Rogof <fake.bios at gmail>
  4. # Contributor: m4.rc0 <m4.rc0 at o2 (dot) pl>
  5. pkgname=rubymine
  6. _pkgname=RubyMine
  7. pkgver=5.0
  8. pkgrel=1
  9. pkgdesc="Ruby and Rails IDE with the full stack of essential developer tools."
  10. arch=('i686' 'x86_64')
  11. url="http://www.jetbrains.com/${pkgname}"
  12. license=('custom')
  13. depends=('java-runtime')
  14. source=(http://download.jetbrains.com/ruby/${_pkgname}-${pkgver}.tar.gz
  15.         rubymine
  16.         rubymine.desktop)
  17. md5sums=('ae3d997fcb79d7d5f462d71dfb675485'
  18.          '481241efe6f7c6519574db59cc16e53b'
  19.          '40b64a49161b6ca0cc3508439b72ccc8')
  20. sha512sums=('9f43d4a1c6fecf43b2a58f8582500d7330d25867f2d0fbda4e63bf8ddf9ed06cc4eece254f811504fd252d51acf87cf1c3a3dc3f4ee88bab30d3a581aaa7c389'
  21.             'f794a7d6b5095f78ff89d6c01ca1fc192b95567f82d2bb9915f19f271542d48638f1ae8c9586ce11962e85c1728148d462e611cbc60ce0a3073fc66d13ac8684'
  22.             '4a1f3e595b74c5bc0fcaafdda323a6f09649ba24d7ae8ae75c4935b7acc352a6b8678f9a005eabb07faca0fbd88745b208465451cd7dee07c5f8de8cc69964ed')
  23.  
  24. build() {
  25.   cd "${srcdir}"
  26.   mkdir -p "${pkgdir}/opt/${pkgname}" || return 1
  27.   cp -r ${srcdir}/${_pkgname}-${pkgver}/* "${pkgdir}/opt/${pkgname}" || return 1
  28.   if [[ $CARCH = 'i686' ]]; then
  29.     rm -f "${pkgdir}/opt/${pkgname}/bin/libyjpagent-linux64.so"
  30.     rm -f "${pkgdir}/opt/${pkgname}/bin/libbreakgen64.so"
  31.     rm -f "${pkgdir}/opt/${pkgname}/bin/fsnotifier64"
  32.   fi
  33.   if [[ $CARCH = 'x86_64' ]]; then
  34.     rm -f "${pkgdir}/opt/${pkgname}/bin/libyjpagent-linux.so"
  35.     rm -f "${pkgdir}/opt/${pkgname}/bin/libbreakgen.so"
  36.     rm -f "${pkgdir}/opt/${pkgname}/bin/fsnotifier"
  37.   fi
  38.  
  39.   mkdir -p "${pkgdir}/usr/bin" || return 1
  40.   mkdir -p "${pkgdir}/usr/share/applications" || return 1
  41.   mkdir -p "${pkgdir}/usr/share/pixmaps" || return 1
  42.   mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" || return 1
  43.   install -m 644 "${startdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications" || return 1
  44.   install -m 644 "${pkgdir}/opt/${pkgname}/bin/RMlogo.svg" "${pkgdir}/usr/share/pixmaps/${pkgname}.svg" || return 1
  45.   install -m 644 "${srcdir}/${_pkgname}-${pkgver}/license/${_pkgname}_license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/${_pkgname}_license.txt" || return 1
  46.   install -m 755 "${startdir}/${pkgname}" "${pkgdir}/usr/bin" || return 1
  47. }
clone this paste RAW Paste Data