[arch-commits] Commit in perl-json-webtoken/trunk (PKGBUILD)

Frederik Schwan freswa at archlinux.org
Fri Oct 30 16:35:33 UTC 2020


    Date: Friday, October 30, 2020 @ 16:35:33
  Author: freswa
Revision: 736767

apply perl packaging guidlines

Modified:
  perl-json-webtoken/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-30 16:34:03 UTC (rev 736766)
+++ PKGBUILD	2020-10-30 16:35:33 UTC (rev 736767)
@@ -2,7 +2,7 @@
 
 pkgname=perl-json-webtoken
 pkgver=0.10
-pkgrel=4
+pkgrel=5
 pkgdesc='Perl/CPAN module JSON WebToken'
 arch=('any')
 url='https://metacpan.org/release/JSON-WebToken'
@@ -10,11 +10,14 @@
 depends=('perl-json')
 makedepends=('perl-module-build' 'perl-module-runtime')
 checkdepends=('perl-test-mock-guard' 'perl-test-requires')
+options=('!emptydirs' purge)
 source=("https://cpan.metacpan.org/authors/id/X/XA/XAICRON/JSON-WebToken-${pkgver}.tar.gz")
 b2sums=('823f09e7d0c2d325de19c0d0f1204d1d0573407978c6d86119e052264c16d8c81a49ee74a9551bcbbe8f054916cd02236e4fb8f0c26ee5e539b71e1a30cdceb6')
 
 build() {
   cd JSON-WebToken-${pkgver}
+  unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+  export PERL_MM_USE_DEFAULT=1 MODULEBUILDRC=/dev/null
   perl Build.PL
   ./Build
 }
@@ -21,12 +24,13 @@
 
 check() {
   cd JSON-WebToken-${pkgver}
+  unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+  export PERL_MM_USE_DEFAULT=1
   ./Build test
 }
 
 package(){
   cd JSON-WebToken-${pkgver}
-  ./Build install --destdir "${pkgdir}"
-  # cleanup empty dir
-  rm -rf ${pkgdir}/usr/lib/
+  unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+  ./Build install --installdirs=vendor --destdir="${pkgdir}"
 }



More information about the arch-commits mailing list