updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / perl-poppler-git / PKGBUILD
blobc88979c9f2f870eaed08875814dcfb878747ca3e
1 # Maintainer: Jakob Nixdorf <flocke [swirly thing] shadowice [dot] org>
3 pkgname=perl-poppler-git
4 pkgver=20110127
5 pkgrel=1
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/"
13 source=()
14 md5sums=()
15 options=('force' '!emptydirs')
16 arch=(i686 x86_64)
18 _gitroot=https://github.com/c9s/perl-poppler.git
19 _gitname=perl-poppler
21 build()
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot $_gitname
31   fi
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
41   make || return 1
42   make DESTDIR=${pkgdir} install || return 1
43   
44   # Remove .packlist and perllocal.pod files.
45   find ${pkgdir} -name '.packlist' -delete
46   find ${pkgdir} -name 'perllocal.pod' -delete