updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / vim-command-t / PKGBUILD
blob7483f05d165c548670e993e2ed6a69573565f76e
1 # Maintainer: Andrey Vlasovskikh <andrey.vlasovskikh@gmail.com>
3 pkgname=vim-command-t
4 pkgver=1.3
5 pkgrel=1
6 pkgdesc="A vim plugin for opening files with a minimal number of keystrokes"
7 arch=(any)
8 url="http://wincent.com/products/command-t"
9 license=('custom')
10 depends=('vim' 'ruby')
11 groups=('vim-plugins')
12 source=("http://s3.wincent.com/command-t/releases/command-t-$pkgver.vba"
13         "LICENSE")
14 md5sums=('555d3c8e17ccdd399be0e802d4db1266'
15          '1645c14893dc0c8954eba7c312dd2073')
17 build() {
18     cd "$srcdir"
19     vim -c "UseVimball ." -c "q" "command-t-$pkgver.vba"
20     cd "ruby/command-t"
21     ruby "extconf.rb"
22     make
23     cd "$srcdir"
24     install -d ${pkgdir}/usr/share/vim/vimfiles/{doc,plugin} || return 1
25     install -d ${pkgdir}/usr/share/vim/vimfiles/ruby/command-t/{vim,finder,scanner} || return 1
26     install -m644 doc/*.txt ${pkgdir}/usr/share/vim/vimfiles/doc/ || return 1
27     install -m644 plugin/*.vim ${pkgdir}/usr/share/vim/vimfiles/plugin/ || return 1
28     install -m644 ruby/command-t/*.{rb,so} ${pkgdir}/usr/share/vim/vimfiles/ruby/command-t || return 1
29     install -m644 ruby/command-t/vim/*.rb ${pkgdir}/usr/share/vim/vimfiles/ruby/command-t/vim || return 1
30     install -m644 ruby/command-t/finder/*.rb ${pkgdir}/usr/share/vim/vimfiles/ruby/command-t/finder || return 1
31     install -m644 ruby/command-t/scanner/*.rb ${pkgdir}/usr/share/vim/vimfiles/ruby/command-t/scanner || return 1
32     install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE