updated on Thu Jan 19 04:14:35 UTC 2012
[aur-mirror.git] / rubymine / PKGBUILD
blobea8db894b7aa5e06b52eb77d5b345c732b6da821
1 # Maintainer: Ernie Brodeur <ebrodeur@ujami.net>
2 # Contributor: Rogof <fake.bios at gmail>
3 # Contributor: m4.rc0 <m4.rc0 at o2 (dot) pl>
5 pkgname=rubymine
6 _realpkgname=RubyMine
7 pkgver=3.2.4
8 pkgrel=1
9 pkgdesc="A commerical Ruby/Rails IDE.  Has support for evaluation license and opensource project licenses."
10 arch=('i686' 'x86_64')
11 url="http://www.jetbrains.com/ruby/"
12 license=('custom')  # I need to adjust this since it technically has four licenses depending on the intended usage.
13 depends=('java-runtime')
14 optdepends=('gtk2') # probably more opts I need to research as well.
15 source=("http://download.jetbrains.com/ruby/${_realpkgname}-${pkgver}.tar.gz"
16         RubyMine.desktop)
17 md5sums=('9cbe147673e5edca96603616f31769ad'
18          '9558515c3ddfa88ed166ee4431206d88')
20 package() {
21         # install the rubymine /usr/lib 
22         mkdir -p "${pkgdir}/usr/lib/${_realpkgname}-${pkgver}"
23         cp -R ${_realpkgname}-${pkgver} "${pkgdir}/usr/lib/"
24         ln -s "${pkgdir}/usr/lib/${_realpkgname}-${pkgver}" "${pkgdir}/usr/lib/${_realpkgname}" 
25         # install a link to startup. Thanks to Rogof for correcting this.
26         mkdir -p "${pkgdir}/usr/bin" 
27         ln -s "/usr/lib/${_realpkgname}-${pkgver}/bin/rubymine.sh" "${pkgdir}/usr/bin/mine" 
29         ### Copy the licenses and the help files over
30         # internally, this is duplicating about ten files as they will exist in two places.
31         # considering the entire package size is well over 75megabytes, a few extra duplicated
32         # files don't mean enough to strain them out.
33         mkdir -p "${pkgdir}/usr/share/doc/${_realpkgname}-${pkgver}"
34         cp -R "${_realpkgname}-${pkgver}/help" "${pkgdir}/usr/share/doc/${_realpkgname}-${pkgver}"
35         mkdir -p "${pkgdir}/usr/share/licenses/${_realpkgname}/"
36         cp -R "${_realpkgname}-${pkgver}/license" "${pkgdir}/usr/share/licenses/${_realpkgname}/"
38         ### Setup a desktop icon in the menu.
39         # move the desktop icon into the desired location, I believe this is /usr/share/applications but
40         # I have not researched it.
41         mkdir -p "${pkgdir}/usr/share/applications/"
42         cp ../RubyMine.desktop "${pkgdir}/usr/share/applications/" 
44   # the icon itself, thanks to Rogof
45   mkdir -p "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
46   cp "${_realpkgname}-${pkgver}/bin/RMlogo.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/RMlogo.svg"
48   # thanks to m4.rc0 for this.
49   if [ "$CARCH" = "i686" ]; then
50     rm "${pkgdir}/usr/lib/${_realpkgname}/bin/fsnotifier64"
51     rm "${pkgdir}/usr/lib/${_realpkgname}/bin/libyjpagent64.so"
52   fi