updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / komodoedit-beta / PKGBUILD
blob09099977a319f319c28dc17c93ae6462095fccec
1 # Contributor: industrie13 <industrie13@post.com>
3 if [ $(uname -m) = "x86_64" ] ; then
4         _arch="x86_64"
5 else
6         _arch="x86"
7 fi
9 _branch="trunk"
10 _major="6.0.0"
11 _state="beta3"
12 _separator1="_" #if $_state is set (eg. alpha1 or beta2), $_separator1 must be set to "_", else it must *not* be set.
13 _separator2="-" #if $_state is set (eg. alpha1 or beta2), $_separator2 must be set to "-", else it must *not* be set.
14 _minor=5715
15 _year=2010
16 _month=08
17 _day=09
18 _rlsnbr=00
20 pkgname="komodoedit-beta"
21 pkgver="${_major}_${_state}${_separator1}${_minor}"
22 pkgrel=1
23 pkgdesc="Open-Source version of ActiveState Komodo IDE - Based on XUL"
24 arch=(i686 x86_64)
25 url="http://www.openkomodo.com/"
26 license=('MPL')
27 depends=('python')
28 conflicts=('komodoedit' 'komodoedit-nightly')
30 source=("http://downloads.activestate.com/Komodo/releases/6.0.0b3/Komodo-Edit-${_major}-${_state}${_separator2}${_minor}-linux-libcpp6-${_arch}.tar.gz")
32 if [ $_arch = "x86_64" ] ; then
33         md5sums=('016148dc3f1e3c761a6383330d00d69f')
34 else
35         md5sums=('4a052361b7c301cf99a0fcc0860f1a61')
38 build() {
39         cd ${startdir}/src/Komodo-Edit-${_major}-${_state}${_separator2}${_minor}-linux-libcpp6-${_arch}
40         ./install.sh -s -I ${startdir}/pkg/opt/${pkgname}
41         grep -v ${startdir} ${startdir}/pkg/opt/${pkgname}/share/desktop/Komodo-Edit-6.desktop > ${startdir}/${pkgname}.desktop
42         echo "Exec=/opt/${pkgname}/bin/komodo %F" >> ${startdir}/${pkgname}.desktop
43         echo "Icon=/opt/${pkgname}/share/icons/komodo16.png" >> ${startdir}/${pkgname}.desktop
44         install -D -m 644 ${startdir}/${pkgname}.desktop ${startdir}/pkg/usr/share/applications/${pkgname}.desktop