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

Komodo Edit 7.1.2 PKGBUILD

By: a guest on Aug 24th, 2012  |  syntax: None  |  size: 1.85 KB  |  views: 64  |  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.2"
  11. _minor=10678
  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=('b81fc7b56a9497187e95e8188d6dd649')
  28. sha256sums=('9bf5116e9b2f98124d1615182599d79045cbef8ab29eff7ab3469c7d97316828')
  29. else
  30. md5sums=('b4d9c77a83e41218d6377041920e4693')
  31. sha256sums=('732b5b18e34ebbdf1c0ae7252c424e37357730189ec8189aeaa463dcd8931990')
  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