1 # Maintainer: Ismael Carnales <icarnales@gmail.com>
2 # Contributor: TDY <tdy@gmx.com>
3 # Contributor: Michael S. Walker <barrucadu@localhost>
8 pkgdesc="A Perl-based grep replacement, aimed at programmers with large trees of heterogeneous source code"
10 url="http://betterthangrep.com/"
11 license=('GPL' 'PerlArtistic')
12 depends=('perl-file-next')
16 options=('!emptydirs')
18 _gitroot=git://github.com/petdance/ack.git
24 msg "Connecting to git.freedesktop.org GIT server...."
26 if [ -d $startdir/src/$_gitname ] ; then
27 cd $_gitname && git-pull origin
28 msg "The local files are updated."
33 msg "GIT checkout done or server timeout"
35 cd "$srcdir/$_gitname"
36 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
38 make DESTDIR="$pkgdir" install || return 1
39 find "$pkgdir" \( -name '.packlist' -o -name 'perllocal.pod' \) -delete