[arch-commits] Commit in perl-json-webtoken/repos/community-any (PKGBUILD PKGBUILD)

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


    Date: Friday, October 30, 2020 @ 16:35:36
  Author: freswa
Revision: 736768

archrelease: copy trunk to community-any

Added:
  perl-json-webtoken/repos/community-any/PKGBUILD
    (from rev 736767, perl-json-webtoken/trunk/PKGBUILD)
Deleted:
  perl-json-webtoken/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   68 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 36 insertions(+), 32 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-30 16:35:33 UTC (rev 736767)
+++ PKGBUILD	2020-10-30 16:35:36 UTC (rev 736768)
@@ -1,32 +0,0 @@
-# Maintainer: Frederik Schwan <freswa at archlinux dot org>
-
-pkgname=perl-json-webtoken
-pkgver=0.10
-pkgrel=4
-pkgdesc='Perl/CPAN module JSON WebToken'
-arch=('any')
-url='https://metacpan.org/release/JSON-WebToken'
-license=('GPL')
-depends=('perl-json')
-makedepends=('perl-module-build' 'perl-module-runtime')
-checkdepends=('perl-test-mock-guard' 'perl-test-requires')
-source=("https://cpan.metacpan.org/authors/id/X/XA/XAICRON/JSON-WebToken-${pkgver}.tar.gz")
-b2sums=('823f09e7d0c2d325de19c0d0f1204d1d0573407978c6d86119e052264c16d8c81a49ee74a9551bcbbe8f054916cd02236e4fb8f0c26ee5e539b71e1a30cdceb6')
-
-build() {
-  cd JSON-WebToken-${pkgver}
-  perl Build.PL
-  ./Build
-}
-
-check() {
-  cd JSON-WebToken-${pkgver}
-  ./Build test
-}
-
-package(){
-  cd JSON-WebToken-${pkgver}
-  ./Build install --destdir "${pkgdir}"
-  # cleanup empty dir
-  rm -rf ${pkgdir}/usr/lib/
-}

Copied: perl-json-webtoken/repos/community-any/PKGBUILD (from rev 736767, perl-json-webtoken/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-10-30 16:35:36 UTC (rev 736768)
@@ -0,0 +1,36 @@
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+
+pkgname=perl-json-webtoken
+pkgver=0.10
+pkgrel=5
+pkgdesc='Perl/CPAN module JSON WebToken'
+arch=('any')
+url='https://metacpan.org/release/JSON-WebToken'
+license=('GPL')
+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
+}
+
+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}
+  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