updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / vim-jde / PKGBUILD
blob67e7b4710f2d6e3a74c0485ffd3522c1265b8178
1 # Maintainer: Laszlo Papp <djszapi @ gmail at com>
2 pkgname=vim-jde
3 pkgver=2.16.2
4 _scriptid=10992
5 pkgrel=4
6 pkgdesc="Vim - Just a Development Envirement (Java/C++)"
7 arch=('i686' 'x86_64')
8 url="http://www.vim.org/scripts/script.php?script_id=1213"
9 license=('custom')
10 depends=(vim)
11 groups=('vim-plugins')
12 install=vimdoc.install
13 source=(${pkgname}.tar.gz::http://www.vim.org/scripts/download_script.php?src_id=${_scriptid}
14         license.txt)
15 md5sums=('fed00ac7898ff636241ee6a1d2a6df1d'
16          'efbd5986e691ce8c876fb86e8f5961ea')
18 build() {
19     install -d ${pkgdir}/usr/share/vim/vimfiles/{doc,plugin,compiler,src,syntax} \
20         ${pkgdir}/usr/share/vim/vimfiles/autoload/xml/
22     for x in doc; do
23                 install -Dm644 ${srcdir}/$x/* ${pkgdir}/usr/share/vim/vimfiles/$x/ || return 1;
24         done
26     cp -aR ${srcdir}/plugin/* ${pkgdir}/usr/share/vim/vimfiles/plugin/ || return 1
27         install -Dm755 ${pkgdir}/usr/share/vim/vimfiles/plugin/vjde/readtags \
28         ${pkgdir}/usr/bin/readtags
29         rm ${pkgdir}/usr/share/vim/vimfiles/plugin/vjde/readtags
31         for x in autoload/xml compiler syntax; do
32                 install -Dm755 ${srcdir}/$x/* ${pkgdir}/usr/share/vim/vimfiles/$x/ || return 1;
33         done
35         for x in `ls ${srcdir}/src/vjde/completion/`; do
36                 install -Dm644 ${srcdir}/src/vjde/completion/$x \
37                 ${pkgdir}/usr/share/vim/vimfiles/src/vjde/completion/$x || \
38                 return 1;
39         done
41     install -Dm644 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt || return 1