updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / aurora-pentadactyl-hg / PKGBUILD
blob80da6c037d5af9980fe62a11631f53daf4272abf
1 # Maintainer: Army <uli armbruster google>
3 pkgname=aurora-pentadactyl-hg
4 pkgver=6685
5 pkgrel=1
6 pkgdesc="Vim-like five-fingered interface for Aurora"
7 arch=(i686 x86_64)
8 license=(MIT)
9 url="http://dactyl.sourceforge.net/pentadactyl"
10 depends=('aurora')
11 makedepends=(mercurial unzip)
12 provides=(aurora-pentadactyl)
14 _hgroot="https://dactyl.googlecode.com"
15 _hgrepo="hg"
17 build() {
18   cd $srcdir/$_hgrepo
20   make -C pentadactyl xpi
21   }
23 package() {
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"
30   echo $_version_aurora
31   install -d "$_path_install"
32   unzip -od "$_path_install" "$_path_xpi"
33   }