updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vim-drawit / PKGBUILD
blob4d083ea5cbf647775cb9958b418e6c333cf6fc49
1 # Maintainer: Laszlo Papp <djszapi @ gmail at com>
2 # Maintainer: Piotr Rogoża <rogoza dot piotr at gmail at com>
4 pkgname=vim-drawit
5 pkgver=10
6 _scriptid=8798
7 pkgrel=2
8 pkgdesc="Ascii drawing plugin: lines, ellipses, arrows, fills, and more!"
9 arch=('any')
10 url="http://www.vim.org/scripts/script.php?script_id=40"
11 license=('custom:vim')
12 depends=('vim-runtime' 'vim-cecutil')
13 groups=('vim-plugins')
14 install='vimdoc.install'
15 source=(${pkgname}.vba.gz::http://www.vim.org/scripts/download_script.php?src_id=${_scriptid}
16         license.txt)
18 build() {
19    cd $srcdir
20    _vimdir='/usr/share/vim/vimfiles'
21    install -d ${pkgdir}${_vimdir}/{doc,plugin,autoload}
22    vim -c "UseVimball $srcdir" -c "q" ${pkgname}.vba
24    tar -c ./ --exclude ${pkgname}.vba.gz | tar -x -C ${pkgdir}${_vimdir} || return 1
25    install -Dm644 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt || return 1
26    rm -f ${pkgdir}${_vimdir}/.VimballRecord
27    rm -f ${pkgdir}${_vimdir}/doc/tags 
28    rm -f ${pkgdir}${_vimdir}/license.txt
29    rm -f ${pkgdir}${_vimdir}/${pkgname}.vba
30    # conflict with vim-manpageview
31    rm -f ${pkgdir}${_vimdir}/plugin/cecutil.vim
34 md5sums=('95268486ce8c2a48054fc9ae57f8cae3'
35          'efbd5986e691ce8c876fb86e8f5961ea')