diff options
author | int | 2017-10-06 12:40:34 +0200 |
---|---|---|
committer | int | 2017-10-06 12:40:34 +0200 |
commit | a78f446ed501377452c8e4a8bdc8d7ea604d581a (patch) | |
tree | d3a1093270c93e1797d87740765e0aefef1b1147 /PKGBUILD | |
download | aur-a78f446ed501377452c8e4a8bdc8d7ea604d581a.tar.gz |
Perl/CPAN Module PDF::Reuse.
This is one of the perl-dependencies of Koha: https://koha-community.org/
Start "./koha_perl_deps.pl -r -a" after downloading and unpacking
the koha-tarball for a list of all required packages.
This is with the cpan2aur-bugfix,
see https://rt.cpan.org/Public/Bug/Display.html?id=123153 for details.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0e0a7518aa0d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer : int <int [ate] arcor [dot] de> +# Generator : CPANPLUS::Dist::Arch 1.32 + +pkgname='perl-pdf-reuse' +pkgver='0.39' +pkgrel='1' +pkgdesc="Perl/CPAN Module PDF::Reuse: Reuse and mass produce PDF documents" +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl-font-ttf' 'perl-text-pdf') +makedepends=() +url='https://metacpan.org/release/PDF-Reuse' +source=('http://search.cpan.org/CPAN/authors/id/C/CN/CNIGHS/PDF-Reuse-0.39.tar.gz') +md5sums=('2a4d8a2f82ef07a40f8c8bc946f988c6') +sha512sums=('b9c570788990a5e21963577b2227e0a0d50ab7be87c7fa1bfcf2d6ff994c12a260fe6777eaf4ff95447e18d2ccaee6f55813df29aa4c205ddbe89529e9f9b60c') +_distdir="PDF-Reuse-0.39" + +build() { + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + MODULEBUILDRC=/dev/null + + cd "$srcdir/$_distdir" + /usr/bin/perl Makefile.PL + make + ) +} + +check() { + cd "$srcdir/$_distdir" + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make test + ) +} + +package() { + cd "$srcdir/$_distdir" + make install + find "$pkgdir" "(" -name .packlist -o -name perllocal.pod ")" -delete +} + +# Local Variables: +# mode: shell-script +# sh-basic-offset: 2 +# End: +# vim:set ts=2 sw=2 et: |