# Maintainer: max-k # Contributor: max-k if [ $(uname -m) = "x86_64" ] ; then _arch="x86_64" else _arch="x86" fi _major="6.1.2" _minor=8334 pkgname="komodoedit" pkgver="${_major}_${_minor}" pkgrel=1 pkgdesc="Open-Source version of ActiveState Komodo IDE - Based on XUL" arch=(i686 x86_64) url="http://www.openkomodo.com/" license=('MPL') depends=('glibc>=2.4' 'libjpeg>=6.2' 'gcc-libs' 'gtk2') optdepends=() conflicts=('komodoedit-nightly' 'komodoedit-beta') source=("http://downloads.activestate.com/Komodo/releases/${_major}/Komodo-Edit-${_major}-${_minor}-linux-libcpp6-${_arch}.tar.gz") if [ $_arch = "x86_64" ] ; then md5sums=('f48c7265cb2fbcdcaee0d525fbca87eb') else md5sums=('62ad6c794d9f5285853002e20ddbecd6') fi build() { cd ${srcdir}/Komodo-Edit-${_major}-${_minor}-linux-libcpp6-${_arch} ./install.sh -s -I ${pkgdir}/opt/${pkgname} sed -i 's/Komodo\ Edit-6.desktop/Komodo\ Edit\ 6/' ${pkgdir}/opt/${pkgname}/share/desktop/komodo-edit-6.desktop grep -v ${srcdir} ${pkgdir}/opt/${pkgname}/share/desktop/komodo-edit-6.desktop > ${srcdir}/${pkgname}.desktop echo "Exec=/opt/${pkgname}/bin/komodo %F" >> ${srcdir}/${pkgname}.desktop echo "Icon=/opt/${pkgname}/share/icons/komodo48.png" >> ${srcdir}/${pkgname}.desktop install -D -m 644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop }