1 # Maintainer: Jakob Nixdorf <flocke [swirly thing] shadowice [dot] org>
3 pkgname=perl-poppler-git
6 pkgdesc="perl binding of poppler library"
7 depends=('perl>=5.10.0' 'glibc' 'poppler' 'cairo-perl')
8 makedepends=('perl-extutils-pkgconfig' 'git' 'patch')
9 provides=('perl-poppler')
10 conflicts=('perl-poppler')
11 license=('GPL' 'PerlArtistic')
12 url="http://search.cpan.org/dist/Poppler/"
15 options=('force' '!emptydirs')
18 _gitroot=https://github.com/c9s/perl-poppler.git
24 msg "Connecting to GIT server...."
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
30 git clone $_gitroot $_gitname
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf "$srcdir/$_gitname-build"
37 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
40 perl Makefile.PL INSTALLDIRS=vendor || return 1
42 make DESTDIR=${pkgdir} install || return 1
44 # Remove .packlist and perllocal.pod files.
45 find ${pkgdir} -name '.packlist' -delete
46 find ${pkgdir} -name 'perllocal.pod' -delete