updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / komodo-ide-testing / PKGBUILD
blob1e2ddbc75181a3705747ee05bb684b89ba8b3c31
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.0b2"
11 _majoralt="7.0.0-beta2"
12 _minor=67670
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'
30 conflicts=()
31 options=(!strip)
32 source=("http://downloads.activestate.com/Komodo/releases/${_major}/Komodo-IDE-${_majoralt}-${_minor}-linux-${_arch}.tar.gz")
34 if [ $_arch = "x86_64" ] 
35 then
36   md5sums=('31363032a373a2a870d1e709056a6793')
37 else
38   md5sums=('fb91060e8833bdaefee7b76952a8f437')
41 build() {
42 cd ${startdir}/src/Komodo-IDE-${_majoralt}-${_minor}-linux-${_arch}
43 ./install.sh -s -I ${startdir}/pkg/opt/${pkgname}
44 sed -i 's/Komodo\ IDE-7.desktop/Komodo\ Edit\ 7/' ${startdir}/pkg/opt/${pkgname}/share/desktop/komodo-ide-7.desktop
45 grep -v ${startdir} ${startdir}/pkg/opt/${pkgname}/share/desktop/komodo-ide-7.desktop > ${startdir}/${pkgname}.desktop
46 echo "Exec=/opt/${pkgname}/bin/komodo %F" >> ${startdir}/${pkgname}.desktop
47 echo "Icon=/opt/${pkgname}/share/icons/komodo48.png" >> ${startdir}/${pkgname}.desktop
48 install -D -m 644 ${startdir}/${pkgname}.desktop ${startdir}/pkg/usr/share/applications/${pkgname}.desktop