updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / komodoedit-nightly / PKGBUILD
blob18f895261f3ab98189e31af64deecedbf90c7847
1 # Maintainer: Dan Serban
2 # Contributor: max-k
4 pkgname=komodoedit-nightly
5 pkgver=6.x.x.latest
6 pkgrel=1
7 pkgdesc="Open-Source version of the Komodo IDE"
8 arch=(i686 x86_64)
9 url=http://www.openkomodo.com/
10 license=(MPL)
11 depends=(gcc-libs glibc gtk2 libjpeg)
12 makedepends=(lynx)
13 conflicts=(komodoedit komodoedit-beta)
14 _filearch=x86
15 [ "${CARCH}" == "x86_64" ] && _filearch=x86_64
17 build()
19   rm *.tar.gz 2>/dev/null || true
20   msg "Locating remote source file..."
21   _url_prefix="http://downloads.activestate.com/Komodo/nightly/komodoedit/2011/"
22   _url_prefix=$(lynx -dump "${_url_prefix}" | grep -o http://downloads.*$ | tail -1)
23   _url_prefix=$(lynx -dump "${_url_prefix}" | grep -o http://downloads.*$ | tail -1)
24   _url=$(lynx -dump "${_url_prefix}" | grep -o http://downloads.*${_filearch}.tar.gz | tail -1)
25   wget ${_url}
26   bsdtar -xf $(basename ${_url})
27   cd $(ls -1d Komodo-Edit-*/)
28   ./install.sh -s -I "${pkgdir}"/opt/komodoedit-nightly
29   grep -v "${startdir}" "${pkgdir}"/opt/komodoedit-nightly/share/desktop/komodo-edit-*.desktop > "${startdir}"/komodoedit-nightly.desktop
30   echo "Exec=/opt/komodoedit-nightly/bin/komodo" >> "${startdir}"/komodoedit-nightly.desktop
31   echo "Icon=/opt/komodoedit-nightly/share/icons/komodo16.png" >> "${startdir}"/komodoedit-nightly.desktop
32   install -Dm644 "${startdir}"/komodoedit-nightly.desktop "${pkgdir}"/usr/share/applications/komodoedit-nightly.desktop