updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / vim-c / PKGBUILD
blob79a4244e9ea14b0d0f8ac8cbe2d3ccfbf5be61b0
1 # Maintainer: Karl Kochs <captainhaggy @ i2pmail dot org>
2 # Contributor: Laszlo Papp <djszapi @ gmail at com>
3 pkgname=vim-c
4 pkgver=5.11
5 _scriptid=13077
6 pkgrel=2
7 pkgdesc="C/C++ IDE --  Write and run programs. Insert statements, idioms, comments etc."
8 arch=('i686' 'x86_64')
9 url="http://www.vim.org/scripts/script.php?script_id=213"
10 license=('custom')
11 depends=(vim)
12 groups=('vim-plugins')
13 install=vimdoc.install
14 source=(${pkgname}.zip::http://www.vim.org/scripts/download_script.php?src_id=${_scriptid}
15         license.txt)
16 md5sums=('bfad20328d13d74941519c609ab60817'
17          'efbd5986e691ce8c876fb86e8f5961ea')
19 build() {
20     install -d ${pkgdir}/usr/share/vim/vimfiles/{doc,plugin,ftplugin} \
21         ${pkgdir}/usr/share/vim/vimfiles/c-support/{rc,doc,scripts,templates,wordlists,codesnippets}
23     for x in doc; do
24                 install -Dm644 ${srcdir}/$x/* ${pkgdir}/usr/share/vim/vimfiles/$x/ || return 1;
25         done
27     for x in plugin c-support/rc c-support/scripts c-support/templates c-support/wordlists c-support/codesnippets ftplugin; do
28                 install -Dm755 ${srcdir}/$x/* ${pkgdir}/usr/share/vim/vimfiles/$x/ || return 1;
29         done
31     install -Dm644 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt || return 1