updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / vim-manpageview / PKGBUILD
blobf9b5985e2331145cd1bc3f0abd6c4706cb3a8829
1 # Maintainer: Laszlo Papp <djszapi @ gmail at com>
2 # Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
3 pkgname=vim-manpageview
4 _pkgname=manpageview
5 pkgver=24c
6 #_scriptid=14117
7 pkgrel=3
8 pkgdesc='Viewer for manpages, gnu info,  perldoc, and php (unix/linux/cygwin)'
9 arch=('any')
10 #url="http://www.vim.org/scripts/script.php?script_id=489"
11 url='http://drchip.0sites.net/astronaut/vim/index.html#MANPAGEVIEW'
12 license=('custom:vim')
13 depends=('vim-runtime' 'vim-cecutil')
14 groups=('vim-plugins')
15 install='vimdoc.install'
16 #source=(${pkgname}.vba.gz::http://www.vim.org/scripts/download_script.php?src_id=${_scriptid}
17 source=("http://drchip.0sites.net/astronaut/vim/vbafiles/${_pkgname}.vba.gz"
18         license.txt
19         manpageview.vim.diff.gz
21 build() {
22    _vimdir='/usr/share/vim/vimfiles'
23    cd $srcdir 
24    install -d ${pkgdir}${_vimdir}/{doc,plugin,syntax,autoload}
26    vim -c "UseVimball $srcdir" -c "q" $_pkgname.vba
28     zcat -f manpageview.vim.diff.gz | patch -p0 || return 1
29     for x in doc; do
30                 install -Dm644 ${srcdir}/$x/* ${pkgdir}${_vimdir}/$x/ || return 1;
31         done
33     for x in plugin syntax autoload; do
34                 install -Dm644 ${srcdir}/$x/* ${pkgdir}${_vimdir}/$x/ || return 1;
35         done
37     install -Dm644 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt || return 1
38         rm -f ${pkgdir}${_vimdir}/doc/tags || return 1
39    rm -f ${pkgdir}${_vimdir}/plugin/cecutil.vim || return 1
42 md5sums=('f24567be92e4d8c44e2d5f5f3e8e69d0'
43          'efbd5986e691ce8c876fb86e8f5961ea'
44          'b7d47a773e82155687ee48274d809488')