[arch-commits] Commit in perl-cpanel-json-xs/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Sun May 29 12:11:24 UTC 2022
Date: Sunday, May 29, 2022 @ 12:11:24
Author: foutrelis
Revision: 1214735
archrelease: copy trunk to community-staging-x86_64
Added:
perl-cpanel-json-xs/repos/community-staging-x86_64/
perl-cpanel-json-xs/repos/community-staging-x86_64/PKGBUILD
(from rev 1214734, perl-cpanel-json-xs/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: perl-cpanel-json-xs/repos/community-staging-x86_64/PKGBUILD (from rev 1214734, perl-cpanel-json-xs/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-05-29 12:11:24 UTC (rev 1214735)
@@ -0,0 +1,37 @@
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+# Contributor: Ordoban <dirk.langer at vvovgonik.de>
+
+pkgname=perl-cpanel-json-xs
+_perl_module=Cpanel-JSON-XS
+pkgver=4.29
+pkgrel=2
+pkgdesc="cPanel fork of JSON::XS, fast and correct serializing"
+arch=('x86_64')
+license=('PerlArtistic' 'GPL')
+depends=('perl')
+url="https://metacpan.org/release/${_perl_module}"
+source=("https://cpan.metacpan.org/authors/id/R/RU/RURBAN/${_perl_module}-${pkgver}.tar.gz")
+sha512sums=('5b25b76efd62b6bd943d27603dc4372d42c01477ec8121cc78767b42252548a8fa279074c072166e6bf5ae33d328f22b3c2646b9b6c36e82f84bef2850e61026')
+
+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