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

PKGBUILD komodoedit

By: a guest on Jul 15th, 2011  |  syntax: Bash  |  size: 1.37 KB  |  views: 87  |  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="6.1.2"
  11. _minor=8334
  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.openkomodo.com/"
  19. license=('MPL')
  20. depends=('glibc>=2.4' 'libjpeg>=6.2' 'gcc-libs' 'gtk2')
  21. optdepends=()
  22. conflicts=('komodoedit-nightly' 'komodoedit-beta')
  23.  
  24. source=("http://downloads.activestate.com/Komodo/releases/${_major}/Komodo-Edit-${_major}-${_minor}-linux-libcpp6-${_arch}.tar.gz")
  25.  
  26. if [ $_arch = "x86_64" ] ; then
  27. md5sums=('f48c7265cb2fbcdcaee0d525fbca87eb')
  28. else
  29. md5sums=('62ad6c794d9f5285853002e20ddbecd6')
  30. fi
  31.  
  32. build() {
  33. cd ${srcdir}/Komodo-Edit-${_major}-${_minor}-linux-libcpp6-${_arch}
  34. ./install.sh -s -I ${pkgdir}/opt/${pkgname}
  35. sed -i 's/Komodo\ Edit-6.desktop/Komodo\ Edit\ 6/' ${pkgdir}/opt/${pkgname}/share/desktop/komodo-edit-6.desktop
  36. grep -v ${srcdir} ${pkgdir}/opt/${pkgname}/share/desktop/komodo-edit-6.desktop > ${srcdir}/${pkgname}.desktop
  37. echo "Exec=/opt/${pkgname}/bin/komodo %F" >> ${srcdir}/${pkgname}.desktop
  38. echo "Icon=/opt/${pkgname}/share/icons/komodo48.png" >> ${srcdir}/${pkgname}.desktop
  39. install -D -m 644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
  40. }
clone this paste RAW Paste Data