1 # Maintainer: Magnus Woldrich <trapd00r@trapd00r.se>
5 pkgdesc="View 'NFO' files containing ASCII art in all its glory in Vim"
7 url="http://github.com/trapd00r/pnfo"
9 depends=('perl' 'vim-neverland-git')
11 install="pnfo.install"
15 _gitroot="git://github.com/trapd00r/pnfo"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34 cd "$srcdir/$_gitname-build"
36 mkdir -p $pkgdir/usr/bin
38 export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
39 PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
40 PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
41 MODULEBUILDRC=/dev/null
45 make install; } || return 1