updated on Fri Jan 20 12:03:34 UTC 2012
[aur-mirror.git] / vimana-git / PKGBUILD
blob2777b94679e3a1cf9bdb0b79ad52919442bcd3bf
1 pkgname=vimana-git
2 pkgver=20110103
3 pkgrel=1
4 pkgdesc="Easy searching,installing and downloading vim script."
5 arch=('any')
6 url="https://github.com/c9s/Vimana"
7 license=('Perl')
8 depends=('perl' 'perl-module-install')
9 makedepends=('git')
10 provides=('vimana')
11 options=('!emptydirs')
13 _gitroot=git://github.com/c9s/Vimana.git
14 _gitname=Vimana
16 build() {
17 cd $srcdir
19 msg "Connecting to github.com GIT server...."
21 if [ -d $startdir/src/$_gitname ] ; then
22   cd $_gitname && git-pull origin
23   msg "The local files are updated."
24 else
25   git clone $_gitroot
28 msg "GIT checkout done or server timeout"
30 cd "$srcdir/$_gitname"
31 PERL_MM_USE_DEFAULT=1 perl Makefile.PL
32 INSTALLDIRS=vendor || return 1
33 make || return 1
34 make DESTDIR="$pkgdir" install || return 1
35 find "$pkgdir" \( -name '.packlist' -o -name 'perllocal.pod' \) -delete