# Maintainer: OmeGa pkgname=firefox-extension-vimfx _file=386421 pkgver=0.11.0 pkgrel=1 pkgdesc="Introduces Vim-style keyboard shortcuts for browsing and navigation without using the mouse." arch=('any') url="https://github.com/akhodakivskiy/VimFx" license=('MIT') depends=('firefox>=40.0') source=(https://addons.mozilla.org/firefox/downloads/file/$_file/vimfx-$pkgver.xpi LICENSE) sha1sums=('336eec2a068fe40b03369b0a59a3b20010b3eee8' 'f1eaf939b37946dea611a5d55ef4784306c70a53') package() { cd $srcdir local _emid=$(sed -n '/.*\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf) || return 1 test ! -z "${_emid}" local _file=(*.xpi) test "${#_file[@]}" -eq 1 install -Dpm644 "${_file}" "${pkgdir}/usr/lib/firefox/browser/extensions/${_emid}.xpi" } # vim:set ts=2 sw=2 et: