[arch-commits] Commit in perl-pdf-api2/repos (2 files)

Fabio Castelli muflone at archlinux.org
Mon Apr 2 00:32:31 UTC 2018


    Date: Monday, April 2, 2018 @ 00:32:30
  Author: muflone
Revision: 313793

archrelease: copy trunk to community-testing-any

Added:
  perl-pdf-api2/repos/community-testing-any/
  perl-pdf-api2/repos/community-testing-any/PKGBUILD
    (from rev 313792, perl-pdf-api2/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: perl-pdf-api2/repos/community-testing-any/PKGBUILD (from rev 313792, perl-pdf-api2/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-04-02 00:32:30 UTC (rev 313793)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+# Contributor: Chad Harp <chad dot harp at mac dot com>
+# Contributor: FadeMind <fademind at gmail dot com>
+# Contributor: TDY <tdy at archlinux dot info>
+# Contributor: Sven Salzwedel <sven_salzwedel at web dot de>
+# Contributor: Olaf Leidinger <leidola at newcon dot de>
+
+pkgname=perl-pdf-api2
+_perl_namespace=PDF
+_perl_module=API2
+pkgver=2.033
+pkgrel=2
+pkgdesc="Faciliates 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")
+sha256sums=('9c0866ec1a3053f73afaca5f5cdbe6925903b4ce606f4bf4ac317731a69d27a0')
+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