1 # Maintainer: Dan Serban
4 pkgname=komodoedit-nightly
7 pkgdesc="Open-Source version of the Komodo IDE"
9 url=http://www.openkomodo.com/
11 depends=(gcc-libs glibc gtk2 libjpeg)
13 conflicts=(komodoedit komodoedit-beta)
15 [ "${CARCH}" == "x86_64" ] && _filearch=x86_64
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)
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