[arch-commits] Commit in perl-cpanel-json-xs/repos (2 files)

Fabio Castelli muflone at archlinux.org
Sun Jun 20 13:46:37 UTC 2021


    Date: Sunday, June 20, 2021 @ 13:46:37
  Author: muflone
Revision: 965900

archrelease: copy trunk to community-testing-x86_64

Added:
  perl-cpanel-json-xs/repos/community-testing-x86_64/
  perl-cpanel-json-xs/repos/community-testing-x86_64/PKGBUILD
    (from rev 965899, perl-cpanel-json-xs/trunk/PKGBUILD)

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

Copied: perl-cpanel-json-xs/repos/community-testing-x86_64/PKGBUILD (from rev 965899, perl-cpanel-json-xs/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-06-20 13:46:37 UTC (rev 965900)
@@ -0,0 +1,38 @@
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+# Contributor: Ordoban <dirk.langer at vvovgonik.de>
+# Generator  : CPANPLUS::Dist::Arch 1.32
+
+pkgname=perl-cpanel-json-xs
+_perl_module=Cpanel-JSON-XS
+pkgver=4.26
+pkgrel=3
+pkgdesc="cPanel fork of JSON::XS, fast and correct serializing"
+arch=('x86_64')
+license=('PerlArtistic' 'GPL')
+depends=('perl')
+url='https://metacpan.org/release/Cpanel-JSON-XS'
+source=("https://cpan.metacpan.org/authors/id/R/RU/RURBAN/${_perl_module}-${pkgver}.tar.gz")
+sha512sums=('3193988a09670a5de6b6292e9f35e8c374518120648a206b769802fb4a66e6487a4ba05b3e89e214b9e3f5985452be74c17aa67e4bf96e88097812be75b2ed9e')
+
+build() {
+  cd "${_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_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_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