updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vim-openbrowser / PKGBUILD
blob0d65121831cbff2347e3fac7f5ff9fc26cbd08e2
1 # Maintainer: Johannes Schlatow <johannes.schlatow@googlemail.com>
3 pkgname=vim-openbrowser
4 pkgver=0.0.3
5 _scriptid=15180
6 pkgrel=1
7 pkgdesc="Open URI with your favorite browser from vim"
8 arch=('any')
9 url="http://www.vim.org/scripts/script.php?script_id=3133"
10 license=('unknown')
11 depends=('vim')
12 makedepends=('unzip')
13 groups=('vim-plugins')
14 install=vimdoc.install
15 source=(http://www.vim.org/scripts/download_script.php?src_id=$_scriptid)
16 sha256sums=('5a995ece7e09f2cd85b4a153ba765c68c4d512f408298deb1c2dfbeb3707d1d2')
18 build() {
19         cd ${srcdir}
21         mv download_script.php?src_id=$_scriptid openbrowser_${pkgver}.zip
22         unzip -qqo openbrowser_${pkgver}.zip
25 package() {
26         cd ${srcdir}
28         installpath="${pkgdir}/usr/share/vim/vimfiles"
30         install -Dm644 doc/openbrowser.txt $installpath/doc/openbrowser.txt
31         install -Dm644 plugin/openbrowser.vim $installpath/plugin/openbrowser.vim
32         install -Dm644 autoload/openbrowser.vim $installpath/autoload/openbrowser.vim
33         install -Dm644 autoload/urilib.vim $installpath/autoload/urilib.vim