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

Untitled

By: bred on Nov 3rd, 2012  |  syntax: Bash  |  size: 1.85 KB  |  views: 75  |  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: max-k <max-k@post.com>
  2. # Contributor: max-k <max-k@post.com>
  3.  
  4. if [ $(uname -m) = "x86_64" ] ; then
  5. _arch="x86_64"
  6. else
  7. _arch="x86"
  8. fi
  9.  
  10. _major="7.1.3"
  11. _minor=11027
  12.  
  13. pkgname="komodoedit"
  14. pkgver="${_major}_${_minor}"
  15. pkgrel=1
  16. pkgdesc="Open-Source version of ActiveState Komodo IDE - Based on XUL"
  17. arch=(i686 x86_64)
  18. url="http://www.activestate.com/komodo-edit"
  19. license=('MPL')
  20. depends=('glibc>=2.4' 'libjpeg>=6.2' 'gcc-libs' 'gtk2')
  21. optdepends=('xterm: can be used by komodo-toolbox')
  22. conflicts=('komodoedit-nightly' 'komodoedit-beta')
  23.  
  24. source=("http://downloads.activestate.com/Komodo/releases/${_major}/Komodo-Edit-${_major}-${_minor}-linux-${_arch}.tar.gz")
  25.  
  26. if [ $_arch = "x86_64" ] ; then
  27. md5sums=('37b0fd204abd3335f6d82bfa206e7cdd')
  28. sha256sums=('cd5de6a6da52ad167fa3aea591d36ba0f1d6e8e6de12265e9bd243c0c27ba505')
  29. else
  30. md5sums=('a4e14897dc7a878f302e7adb143dbcee')
  31. sha256sums=('3c03bed04302eed88fe1c2028043275e9db583a06cfb6b2566639efc2834a79b')
  32. fi
  33.  
  34. build() {
  35. cd ${srcdir}/Komodo-Edit-${_major}-${_minor}-linux-${_arch}
  36. sed -i 's/^    print/   #print\n   /g' support/_install.py
  37. sed -i 's/root.addHandler(console)/#root.addHandler(console)/' support/_install.py
  38. ./install.sh -s -I ${pkgdir}/opt/${pkgname} --dest-dir ${pkgdir}/opt/${pkgname} 2>&1 | sed "s#${pkgdir}##" || exit 1
  39. grep -v ${srcdir} ${pkgdir}/opt/${pkgname}/share/desktop/komodo-edit-7.desktop > ${srcdir}/${pkgname}.desktop
  40. echo "Exec=/opt/${pkgname}/bin/komodo %F" >> ${srcdir}/${pkgname}.desktop
  41. echo "Icon=/opt/${pkgname}/share/icons/komodo128.png" >> ${srcdir}/${pkgname}.desktop
  42. install -D -m 644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
  43. ln -sf "/opt/${pkgname}/lib/mozilla/komodo" "${pkgdir}/opt/${pkgname}/bin/komodo"
  44. install -d "${pkgdir}/usr/local/bin"
  45. ln -s "/opt/${pkgname}/bin/komodo" "${pkgdir}/usr/local/bin/komodo"
  46. }
clone this paste RAW Paste Data