1 # Maintainer: Jakob Nixdorf <flocke [swirly thing] shadowice [dot] org>
6 pkgdesc="A perl script to manage the /etc/hosts file as Ad/Hostblocker"
9 depends=('perl' 'perl-libwww' 'perl-crypt-ssleay' 'perl-array-diff')
10 provides=('hblocker=0.5')
11 conflicts=('hblocker')
13 url="http://exthblocker.de"
17 _gitroot="git://git.shadowice.org/hblocker.git"
21 msg "Connecting to gitorious.org GIT server...."
23 if [ -d $srcdir/$_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf $srcdir/$_gitname-build
34 cp -r $srcdir/$_gitname $srcdir/$_gitname-build
35 cd $srcdir/$_gitname-build
37 perl Makefile.PL INSTALLDIRS=vendor || return 1
39 make DESTDIR=${pkgdir} install || return 1
41 # Remove .packlist and perllocal.pod files.
42 find ${pkgdir} -name '.packlist' -delete
43 find ${pkgdir} -name 'perllocal.pod' -delete