updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / perl-pdf-reuse / PKGBUILD
blobcea0579e972f0775d0ac953f1515900b8a1d6a11
1 # Generated by Xyne::Arch::CPAN 0.07
3 pkgname=perl-pdf-reuse
4 pkgver=0.35
5 pkgrel=2
6 pkgdesc="Reuse and mass produce PDF documents"
7 arch=('i686' 'x86_64')
8 url="http://search.cpan.org/dist/PDF-Reuse/"
9 license=('PerlArtistic' 'GPL')
10 source=('http://search.cpan.org/CPAN/authors/id/L/LA/LARSLUND/PDF-Reuse-0.35.tar.gz')
11 md5sums=('1e2541eacaf8df4f4012312f6c353688')
12 sha256sums=('bd6566d18b5d7dfc4c6c83abd7374df321db7e49b2cf6763ff7104d9285fa575')
13 depends=('perl-autoloader' 'perl-compress-zlib' 'perl-data-dumper' 'perl-digest-md5' 'perl-exporter' 'perl-font-ttf' 'perl-text-pdf')
14 provides=('perl-pdf-reuse-util')
15 options=(!emptydirs)
17 build() {
18   _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL')
19   if [ ! -z "$_dir" ]; then
20     cd $(dirname "$_dir")
21     PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
22     make  || return 1
23     make install DESTDIR="${pkgdir}" || return 1
25   else
26   _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL')
27   if [ ! -z "$_dir" ]; then
28     cd $(dirname "$_dir")
29     PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1
30     ./Build  || return 1
31     ./Build install destdir=${pkgdir} || return 1
33   else
34     echo "error: failed to detect build method for $pkgname"
35     echo "you may be able to fix this by editing the PKGBUILD"
36     return 1
37   fi fi
39   # remove perllocal.pod and .packlist
40   find ${pkgdir} -name perllocal.pod -delete
41   find ${pkgdir} -name .packlist -delete
44 # vim:set ts=2 sw=2 et: