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

:)

By: a guest on Oct 23rd, 2010  |  syntax: None  |  size: 1.46 KB  |  views: 57  |  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. pkgname="komodoedit"
  3. _major="6.0.0"
  4. _minor="6454"
  5. pkgver="${_major}_${_minor}"
  6. pkgrel=5
  7. pkgdesc="Open-Source version of ActiveState Komodo IDE - Based on XUL"
  8. arch=('i686' 'x86_64')
  9. url="http://www.openkomodo.com/"
  10. license=('MPL')
  11. depends=('glibc>=2.4' 'libjpeg>=6.2' 'gcc-libs' 'gtk2')
  12. optdepends=('python2: to run what you code')
  13. conflicts=('komodoedit-nightly' 'komodoedit-beta')
  14. _arch=x86 && md5sums=('897465556a21d12352549104b6f1b471')
  15. [ "$CARCH" = "x86_64" ] && _arch=x86_64 && md5sums=('98ea3e542233635b4a31f35c57dc0938')
  16. source=("http://downloads.activestate.com/Komodo/releases/${_major}/Komodo-Edit-${_major}-${_minor}-linux-libcpp6-${_arch}.tar.gz")
  17.  
  18. build() {
  19. cd ${startdir}/src/Komodo-Edit-${_major}-${_minor}-linux-libcpp6-${_arch}
  20. ./install.sh -s -I ${startdir}/pkg/opt/${pkgname}
  21. sed -i "s/Komodo\ Edit-6.desktop/Komodo\ Edit\ 6/g" ${startdir}/pkg/opt/${pkgname}/share/desktop/komodo-edit-6.desktop
  22. sed -i "s/Exec=.*/Exec=\/opt\/${pkgname}\/bin\/komodo\ %F/g" ${startdir}/pkg/opt/${pkgname}/share/desktop/komodo-edit-6.desktop
  23. sed -i "s/Icon=.*/Icon=\/opt\/${pkgname}\/share\/icons\/komodo48.png/g" ${startdir}/pkg/opt/${pkgname}/share/desktop/komodo-edit-6.desktop
  24. install -d "${startdir}/pkg/usr/"{bin,share/applications}
  25. ln -s "/opt/${pkgname}/bin/komodo" "${startdir}/pkg/usr/bin/komodo"
  26. ln -s "/opt/${pkgname}/share/desktop/komodo-edit-6.desktop" "${startdir}/pkg/usr/share/applications/${pkgname}.desktop"
  27. }