updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / komodo-ide-testing / PKGBUILD
blobbd92b8560d185b23336112ea104df3634d53f8f4
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="7.0.0c2"
11 _majoralt="7.0.0-rc2"
12 _minor=68504
15 pkgname="komodo-ide-testing"
16 pkgver="${_major}_${_minor}"
17 pkgrel=1
18 pkgdesc="ActiveState Komodo IDE"
19 arch=(i686 x86_64)
20 url="http://www.activestate.com/komodo-ide"
21 license=('MPL')
22 depends=('glibc>=2.4' 'libjpeg>=6.2' 'gcc-libs' 'gtk2')
23 optdepends=('php: PHP debugging'
24             'ruby: Ruby debugging'
25             'python2: Python 2.x debugging'
26             'python: Python 3.x debugging'
27             'git: Git SCC integration'
28             'subversion: SVN SCC integration'
29             'nodejs: Node.js debugging'
32 conflicts=()
33 options=(!strip)
34 source=("http://downloads.activestate.com/Komodo/releases/${_major}/Komodo-IDE-${_majoralt}-${_minor}-linux-${_arch}.tar.gz")
36 if [ $_arch = "x86_64" ] 
37 then
38   md5sums=('061f26e7f040dfc0d048a684e0af50c0')
39 else
40   md5sums=('aba78863a1c7e9afb8690409a427b88d')
43 build() {
44 cd ${startdir}/src/Komodo-IDE-${_majoralt}-${_minor}-linux-${_arch}
45 ./install.sh -s -I ${startdir}/pkg/opt/${pkgname}
46 sed -i 's/Komodo\ IDE-7.desktop/Komodo\ Edit\ 7/' ${startdir}/pkg/opt/${pkgname}/share/desktop/komodo-ide-7.desktop
47 grep -v ${startdir} ${startdir}/pkg/opt/${pkgname}/share/desktop/komodo-ide-7.desktop > ${startdir}/${pkgname}.desktop
48 echo "Exec=/opt/${pkgname}/bin/komodo %F" >> ${startdir}/${pkgname}.desktop
49 echo "Icon=/opt/${pkgname}/share/icons/komodo48.png" >> ${startdir}/${pkgname}.desktop
50 install -D -m 644 ${startdir}/${pkgname}.desktop ${startdir}/pkg/usr/share/applications/${pkgname}.desktop