[arch-commits] Commit in (4 files)
Fabio Castelli
muflone at archlinux.org
Sun Nov 22 00:00:08 UTC 2020
Date: Sunday, November 22, 2020 @ 00:00:08
Author: muflone
Revision: 758709
new package perl-pdf-builder 3.019-1
Added:
perl-pdf-builder/
perl-pdf-builder/repos/
perl-pdf-builder/trunk/
perl-pdf-builder/trunk/PKGBUILD
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Added: perl-pdf-builder/trunk/PKGBUILD
===================================================================
--- perl-pdf-builder/trunk/PKGBUILD (rev 0)
+++ perl-pdf-builder/trunk/PKGBUILD 2020-11-22 00:00:08 UTC (rev 758709)
@@ -0,0 +1,40 @@
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+# Contributor: web.de jan.stuehler
+
+pkgname=perl-pdf-builder
+_perl_namespace=PDF
+_perl_module=Builder
+pkgver=3.019
+pkgrel=1
+pkgdesc="Facilitates the creation and modification of PDF files"
+arch=('any')
+url="https://metacpan.org/release/${_perl_namespace}-${_perl_module}"
+license=('LGPL')
+depends=('perl' 'perl-font-ttf')
+checkdepends=('perl-test-exception' 'perl-test-memory-cycle')
+source=("https://www.cpan.org/modules/by-module/${_perl_namespace}/${_perl_namespace}-${_perl_module}-${pkgver}.tar.gz")
+sha512sums=('f1869a6ecb202a7661600e91ddc1ab1d21387979d7e42470ec4c663f2b36b8c04e12c475f5ba90a88ce43950723f73ce46c5d0057220d5a53e34cc16b22ce92e')
+options=('!emptydirs')
+
+build() {
+ cd "${_perl_namespace}-${_perl_module}-${pkgver}"
+ unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
+ perl Makefile.PL
+ make
+}
+
+check() {
+ cd "${_perl_namespace}-${_perl_module}-${pkgver}"
+ unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1
+ make test
+}
+
+package() {
+ cd "${_perl_namespace}-${_perl_module}-${pkgver}"
+ unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+ make pure_install INSTALLDIRS=vendor DESTDIR="${pkgdir}"
+ # Delete unuseful files
+ find "${pkgdir}" -name '.packlist' -delete
+}
More information about the arch-commits
mailing list