1 pkgname=perl-pdf-api2-simple
4 pkgdesc="Simplistic wrapper for the excellent PDF::API2 modules"
6 url="http://search.cpan.org/dist/PDF-API2-Simple/"
8 source=('http://search.cpan.org/CPAN/authors/id/R/RE/REDTREE/PDF-API2-Simple-1.1.4u.tar.gz')
9 depends=('perl-pdf-api2')
10 makedepends=('perl-module-install')
11 md5sums=('e2c4f5d8eb4ad775f6ca8816cbf45d12')
12 sha256sums=('c4ebb640f9e47a6b4f05213647a90a0c760d2889b7f1b4f6e4cf44d2e00604ee')
16 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL')
17 if [ ! -z "$_dir" ]; then
19 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
21 make install DESTDIR="${pkgdir}" || return 1
24 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL')
25 if [ ! -z "$_dir" ]; then
27 PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1
29 ./Build install destdir=${pkgdir} || return 1
32 echo "error: failed to detect build method for $pkgname"
33 echo "you may be able to fix this by editing the PKGBUILD"
37 # remove perllocal.pod and .packlist
38 find ${pkgdir} -name perllocal.pod -delete
39 find ${pkgdir} -name .packlist -delete
42 # vim:set ts=2 sw=2 et: