updated on Wed Jan 11 08:01:35 UTC 2012
[aur-mirror.git] / vim-swapit / PKGBUILD
blobd14e5912aeb737c1320af4b89ffff78140722072
1 # Contributer: N30N <archlinux@alunamation.com>
3 pkgname="vim-swapit"
4 pkgver=0.3
5 _srcid=11298
6 pkgrel=1
7 pkgdesc="Extensible keyword swapper (turn yes to no, True to False and more)"
8 url="http://www.vim.org/scripts/script.php?script_id=2294"
9 license=("MIT")
10 arch=("any")
11 depends=("vim")
12 optdepends=("vim-matchit: for xml/html tag complete option")
13 install=vimdoc.install
14 source=("http://www.vim.org/scripts/download_script.php?src_id=${_srcid}")
15 md5sums=("37a078301986dc0120e8ee541a808dae")
17 build() {
18         cd ${srcdir}
19         mv download_script.php?src_id=${_srcid} swapit.${pkgver}.tar.gz
20         tar -xzf swapit.${pkgver}.tar.gz
22         _installpath="${pkgdir}/usr/share/vim/vimfiles"
24         install -D -m644 doc/swapit.txt ${_installpath}/doc/swapit.txt
25         install -D -m644 plugin/swapit.vim ${_installpath}/plugin/swapit.vim
27         for file in $(ls after/ftplugin/); do
28                 install -D -m644 after/ftplugin/${file} ${_installpath}/after/ftplugin/${file}
29         done
32 # vim: set noet ff=unix