updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vim-tvo / PKGBUILD
blob4ddf61635f59fccddbdbb3ca6367483606650060
1 # Maintainer: Peter Lewis <plewis@aur.archlinux.org>
2 # Contributor: Florian Friesdorf <archlinux@chaoflow.net>
3 # Contributor: Laszlo Papp <djszapi @ gmail at com>
5 pkgname=vim-tvo
6 pkgver=122
7 _srcid=5768
8 pkgrel=7
9 pkgdesc="The Vim Outliner - one of many"
10 arch=('any')
11 url="http://www.vim.org/scripts/script.php?script_id=517"
12 license=('unknown')
13 groups=('vim-plugins')
14 depends=('vim')
15 conflicts=('vimoutliner' 'vim-vimoutliner')
16 replaces=('vimoutliner')
17 optdepends=('ruby: for otl2pod, opml2otl, doc2otl, otl2swiki'
18             'antiword: for doc2otl')
19 install=vimdoc.install
20 source=(
21   ${pkgname}.zip::http://www.vim.org/scripts/download_script.php?src_id=$_srcid
22   )
23 md5sums=('ded940d96731de00e4b653a3cdabde4c')
25 build() {
26     cd ${srcdir}
28     vimdir=${pkgdir}/usr/share/vim/vimfiles
29     docdir=${pkgdir}/usr/share/doc/${pkgname}
30     scriptsdir=${pkgdir}/usr/bin
31     sharedir=${vimdir}/usr/share/${pkgname}
32     
33     install -d ${docdir}/
34     install -m644 \
35         ${srcdir}/{FAQ.txt,INSTALL,MANIFEST,README.otl,changes.txt,versions.txt,easy.gvimrc,easy.vimrc} \
36         ${docdir}/
38     install -d ${scriptsdir}/
39     install -m755 ${srcdir}/{doc2otl,opml2otl,otl2*,otlParser.rb,pod2otl} \
40         ${scriptsdir}/
42     for x in bitmaps/TVO doc ftdetect ftplugin macros syntax; do
43         install -d ${vimdir}/${x}/
44         install -m644 ${srcdir}/${x}/* ${vimdir}/${x}/
45     done