Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD Komodo Edit 6.0.1

By: a guest on Oct 30th, 2010  |  syntax: None  |  size: 1.40 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. # Contributor: max-k <max-k@post.com>
  2.  
  3. if [ $(uname -m) = "x86_64" ] ; then
  4. _arch="x86_64"
  5. else
  6. _arch="x86"
  7. fi
  8.  
  9. _major="6.0.1"
  10. _minor=6535
  11.  
  12. pkgname="komodoedit"
  13. pkgver="${_major}_${_minor}"
  14. pkgrel=1
  15. pkgdesc="Open-Source version of ActiveState Komodo IDE - Based on XUL"
  16. arch=(i686 x86_64)
  17. url="http://www.openkomodo.com/"
  18. license=('MPL')
  19. depends=('glibc>=2.4' 'libjpeg>=6.2' 'gcc-libs' 'gtk2')
  20. optdepends=('python: to run what you code')
  21. conflicts=('komodoedit-nightly' 'komodoedit-beta')
  22.  
  23. source=("http://downloads.activestate.com/Komodo/releases/${_major}/Komodo-Edit-${_major}-${_minor}-linux-libcpp6-${_arch}.tar.gz")
  24.  
  25. if [ $_arch = "x86_64" ] ; then
  26. md5sums=('f6ad48ce1ea0b49b6c1d5991d60d7b77')
  27. else
  28. md5sums=('4c4fdf8cb2b22046cc54055058157daa')
  29. fi
  30.  
  31. build() {
  32. cd ${startdir}/src/Komodo-Edit-${_major}-${_minor}-linux-libcpp6-${_arch}
  33. ./install.sh -s -I ${startdir}/pkg/opt/${pkgname}
  34. sed -i 's/Komodo\ Edit-6.desktop/Komodo\ Edit\ 6/' ${startdir}/pkg/opt/${pkgname}/share/desktop/komodo-edit-6.desktop
  35. grep -v ${startdir} ${startdir}/pkg/opt/${pkgname}/share/desktop/komodo-edit-6.desktop > ${startdir}/${pkgname}.desktop
  36. echo "Exec=/opt/${pkgname}/bin/komodo %F" >> ${startdir}/${pkgname}.desktop
  37. echo "Icon=/opt/${pkgname}/share/icons/komodo48.png" >> ${startdir}/${pkgname}.desktop
  38. install -D -m 644 ${startdir}/${pkgname}.desktop ${startdir}/pkg/usr/share/applications/${pkgname}.desktop
  39. }