1 # Maintainer: Army <uli armbruster google>
3 pkgname=aurora-pentadactyl-hg
6 pkgdesc="Vim-like five-fingered interface for Aurora"
9 url="http://dactyl.sourceforge.net/pentadactyl"
11 makedepends=(mercurial unzip)
12 provides=(aurora-pentadactyl)
14 _hgroot="https://dactyl.googlecode.com"
20 make -C pentadactyl xpi
24 local _version_aurora="$(perl -e '`aurora -v` =~ /(\d+\.\d+[^\s.,;:]*)/; print $1')"
25 local _version_pentadactyl="$(awk -F 'em:version="|"' '/em:version/ {print $2; exit}' $srcdir/$_hgrepo/pentadactyl/install.rdf)"
26 local _extension_id="$(awk -F 'em:id="|"' '/em:id/ {print $2; exit}' $srcdir/$_hgrepo/pentadactyl/install.rdf)"
27 local _path_xpi="$srcdir/$_hgrepo/downloads/pentadactyl-$_version_pentadactyl.xpi"
28 local _path_install="$pkgdir/usr/lib/aurora/extensions/$_extension_id"
31 install -d "$_path_install"
32 unzip -od "$_path_install" "$_path_xpi"