updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / komodo-ide / PKGBUILD
blob2a2384981a245f5ffc9fa531827782df25508a64
1 # Maintainer: Jamie Paton <jamie.paton@googlemail.com>
2 # Contributor: max-k <max-k@post.com>
4 if [ $(uname -m) = "x86_64" ] ; then
5 _arch="x86_64"
6 else
7 _arch="x86"
8 fi
10 _major="6.1.3"
11 _minor=66534
13 pkgname="komodo-ide"
14 pkgver="${_major}_${_minor}"
15 pkgrel=1
16 pkgdesc="ActiveState Komodo IDE"
17 arch=(i686 x86_64)
18 url="http://www.activestate.com/komodo-ide"
19 license=('MPL')
20 depends=('glibc>=2.4' 'libjpeg>=6.2' 'gcc-libs' 'gtk2')
21 optdepends=('php: PHP debugging'
22             'ruby: Ruby debugging'
23             'git: Git SCC integration'
24             'subversion: SVN SCC integration'
27 options=(!strip)
28 conflicts=()
30 source=("http://downloads.activestate.com/Komodo/releases/${_major}/Komodo-IDE-${_major}-${_minor}-linux-libcpp6-${_arch}.tar.gz")
32 if [ $_arch = "x86_64" ] ; then
33 md5sums=('eaa0086dedca656642fc924a64c0f927')
34 else
35 md5sums=('c64b4bcf9f331c1519cce61686941953')
38 build() {
39 cd ${startdir}/src/Komodo-IDE-${_major}-${_minor}-linux-libcpp6-${_arch}
40 ./install.sh -s -I ${startdir}/pkg/opt/${pkgname}
41 sed -i 's/Komodo\ IDE-6.desktop/Komodo\ Edit\ 6/' ${startdir}/pkg/opt/${pkgname}/share/desktop/komodo-ide-6.desktop
42 grep -v ${startdir} ${startdir}/pkg/opt/${pkgname}/share/desktop/komodo-ide-6.desktop > ${startdir}/${pkgname}.desktop
43 echo "Exec=/opt/${pkgname}/bin/komodo %F" >> ${startdir}/${pkgname}.desktop
44 echo "Icon=/opt/${pkgname}/share/icons/komodo48.png" >> ${startdir}/${pkgname}.desktop
45 install -D -m 644 ${startdir}/${pkgname}.desktop ${startdir}/pkg/usr/share/applications/${pkgname}.desktop