public
Created

vimperator-hg PKGBUILD

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
# Maintainer: Michael Witten <mfwitten>
# Contributor: Axpere Jan <483ken _@AT@_ gmail>
# Contributor: Gustavo Dutra <mechamo@gustavodutra.com>
 
pkgname=vimperator-hg
pkgver=r4791.4b30fbfb2ee3
pkgrel=1
pkgdesc="Make firefox look and behave like Vim (hg version)"
arch=('any')
url="http://www.vimperator.org/vimperator"
license=('MIT')
groups=('network')
depends=('firefox>=4.0b5')
makedepends=('mercurial' 'zip' 'unzip')
provides=('vimperator')
conflicts=('vimperator')
source=("${pkgname}::hg+https://vimperator-labs.googlecode.com/hg/")
md5sums=('SKIP')
 
 
pkgver() {
cd "${srcdir}/${pkgname}"
printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}
 
build() {
cd "${srcdir}/${pkgname}/vimperator"
make xpi
}
 
package() {
install -d "${pkgdir}/usr/lib/firefox/browser/extensions/vimperator@mozdev.org"
cd "${srcdir}/${pkgname}/downloads"
unzip *.xpi -d "${pkgdir}/usr/lib/firefox/browser/extensions/vimperator@mozdev.org"
 
# License
install -Dm644 "$srcdir/${pkgname}/License.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
 
# vim:set ts=2 sw=2 et:

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.