updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / vimperator / PKGBUILD
bloba1adc41187d82562dcfb08dfeb50734af5e909c4
1 # Contributor: Gustavo Dutra <mechamo@gustavodutra.com>
2 pkgname=vimperator
3 license=("MIT")
4 pkgver=3.2
5 pkgrel=1
6 pkgdesc="Make firefox look and behave like Vim"
7 arch=('i686' 'x86_64')
8 url="http://vimperator.org/vimperator"
9 depends=('firefox>=4.0')
10 _fileName=vimperator-$pkgver.xpi
11 source=(http://vimperator-labs.googlecode.com/files/$_fileName)
12 md5sums=('5d86d089493d53173fbfc4eed39db8e8')
13 build() {
14     local _extensionId="vimperator@mozdev.org" _firefoxVersion=$(echo $(firefox -v) | sed 's/^.*\([0-9]\+\.[0-9]\+\).*$/\1/g' -)
15     cd $srcdir || return 1
16     local dstdir=$pkgdir/usr/lib/firefox-$_firefoxVersion/extensions/$_extensionId
17     install -d $dstdir || return 1
18     cp -R * $dstdir || return 1
19     rm $dstdir/$_fileName