updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / vim-autoalign / PKGBUILD
blob7f2759846e83d1c93ddf0b2956e84d92e838b26d
1 # Maintainer: koral <koral at mailoo dot org>
2 pkgname=vim-autoalign
3 pkgver=13
4 pkgrel=1
5 pkgdesc="Automatically align as you type (autoalign): bib c c++ html maple matlab tex vim."
6 arch=(any)
7 url="http://www.vim.org/scripts/script.php?script_id=884"
8 license=('unknown')
9 groups=('vim-plugins')
10 provides=
11 depends=('vim' 'vim-align')
12 optdepends=
13 makedepends=
14 conflicts=
15 replaces=
16 backup=
17 install=vimdoc.install
18 _scriptid=7510
19 source=(${pkgname}.vba.gz::http://www.vim.org/scripts/download_script.php?src_id=${_scriptid})
20 md5sums=('30cb59a0b2ce7756fedc1ef6d09b7ac5')
22 build() {
23     cd ${srcdir}
25     mkdir -p ${srcdir}/plugin
26     mkdir -p ${srcdir}/ftplugin/bib
27     mkdir -p ${srcdir}/ftplugin/c
28     mkdir -p ${srcdir}/ftplugin/cpp
29     mkdir -p ${srcdir}/ftplugin/html
30     mkdir -p ${srcdir}/ftplugin/maple
31     mkdir -p ${srcdir}/ftplugin/matlab
32     mkdir -p ${srcdir}/ftplugin/tex
33     mkdir -p ${srcdir}/ftplugin/vim
34     mkdir -p ${srcdir}/doc
36     vim -c "UseVimball ${srcdir}" -c "q" ${pkgname}.vba.gz
38     install -Dm644 ${srcdir}/plugin/cecutil.vim             ${pkgdir}/usr/share/vim/vimfiles/plugin/cecutil.vim
39     install -Dm644 ${srcdir}/plugin/AutoAlign.vim           ${pkgdir}/usr/share/vim/vimfiles/plugin/AutoAlign.vim
40     install -Dm644 ${srcdir}/ftplugin/bib/AutoAlign.vim     ${pkgdir}/usr/share/vim/vimfiles/ftplugin/bib/AutoAlign.vim
41     install -Dm644 ${srcdir}/ftplugin/c/AutoAlign.vim       ${pkgdir}/usr/share/vim/vimfiles/ftplugin/c/AutoAlign.vim
42     install -Dm644 ${srcdir}/ftplugin/cpp/AutoAlign.vim     ${pkgdir}/usr/share/vim/vimfiles/ftplugin/cpp/AutoAlign.vim
43     install -Dm644 ${srcdir}/ftplugin/html/AutoAlign.vim    ${pkgdir}/usr/share/vim/vimfiles/ftplugin/html/AutoAlign.vim
44     install -Dm644 ${srcdir}/ftplugin/maple/AutoAlign.vim   ${pkgdir}/usr/share/vim/vimfiles/ftplugin/maple/AutoAlign.vim
45     install -Dm644 ${srcdir}/ftplugin/matlab/AutoAlign.vim  ${pkgdir}/usr/share/vim/vimfiles/ftplugin/matlab/AutoAlign.vim
46     install -Dm644 ${srcdir}/ftplugin/tex/AutoAlign.vim     ${pkgdir}/usr/share/vim/vimfiles/ftplugin/tex/AutoAlign.vim
47     install -Dm644 ${srcdir}/ftplugin/vim/AutoAlign.vim     ${pkgdir}/usr/share/vim/vimfiles/ftplugin/vim/AutoAlign.vim
48     install -Dm644 ${srcdir}/doc/AutoAlign.txt              ${pkgdir}/usr/share/vim/vimfiles/doc/AutoAlign.txt