updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / komodo-edit-testing / PKGBUILD
blob1f21a3ad0e9f35cf2f773da52ed13044fc00d84b
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=9194
15 pkgname="komodo-edit-testing"
16 pkgver="${_major}_${_minor}"
17 pkgrel=1
18 pkgdesc="ActiveState Komodo Edit - Developer Preview Release"
19 arch=(i686 x86_64)
20 url="http://www.activestate.com/komodo-edit"
21 license=('MPL')
22 depends=('glibc>=2.4' 'libjpeg>=6.2' 'gcc-libs' 'gtk2')
24 optdepends=()
25 conflicts=()
27 options=(!strip)
28 source=("http://downloads.activestate.com/Komodo/releases/${_major}/Komodo-Edit-${_majoralt}-${_minor}-linux-${_arch}.tar.gz")
30 if [ $_arch = "x86_64" ] 
31 then
32 md5sums=('56e601c254e26df1d58a3feb8babe39d')
33 else
34 md5sums=('eb65d6416cc7cc96f4ca3d1e5a3c84a6')
37 build() {
38 cd ${startdir}/src/Komodo-Edit-${_majoralt}-${_minor}-linux-${_arch}
39 ./install.sh -s -I ${startdir}/pkg/opt/${pkgname}
40 sed -i 's/Komodo\ Edit-7.desktop/Komodo\ Edit\ 7/' ${startdir}/pkg/opt/${pkgname}/share/desktop/komodo-edit-7.desktop
41 grep -v ${startdir} ${startdir}/pkg/opt/${pkgname}/share/desktop/komodo-edit-7.desktop > ${startdir}/${pkgname}.desktop
42 echo "Exec=/opt/${pkgname}/bin/komodo %F" >> ${startdir}/${pkgname}.desktop
43 echo "Icon=/opt/${pkgname}/share/icons/komodo48.png" >> ${startdir}/${pkgname}.desktop
44 install -D -m 644 ${startdir}/${pkgname}.desktop ${startdir}/pkg/usr/share/applications/${pkgname}.desktop