[arch-commits] Commit in perl-mozilla-ca/trunk (PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Mon Jun 27 18:29:54 UTC 2022


    Date: Monday, June 27, 2022 @ 18:29:54
  Author: felixonmars
Revision: 449494

upgpkg: perl-mozilla-ca 20211001-1

using system ca store now.

Modified:
  perl-mozilla-ca/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++++++++++-----------
 1 file changed, 20 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-27 17:31:37 UTC (rev 449493)
+++ PKGBUILD	2022-06-27 18:29:54 UTC (rev 449494)
@@ -2,31 +2,40 @@
 # Contributor: Justin Davis (juster) <jrcd83 at gmail.com>
 
 pkgname=perl-mozilla-ca
-pkgver=20200520
-pkgrel=5
-pkgdesc="Mozilla's CA cert bundle in PEM format"
+pkgver=20211001
+pkgrel=1
+pkgdesc="Mozilla's CA cert bundle in PEM format (using system CA store)"
 arch=('any')
 license=('GPL2' 'LGPL2.1')
 options=('!emptydirs')
-depends=('perl')
+depends=('perl' 'ca-certificates')
 url='https://metacpan.org/release/Mozilla-CA'
 source=("https://search.cpan.org/CPAN/authors/id/A/AB/ABH/Mozilla-CA-$pkgver.tar.gz")
-sha512sums=('5bc7c43c55baa3f878fd2dbf1c85d6b20dcdc9e54ae073d1be4f6b808fa5a4b1205428b7967b5f752b31a62464a8b5cc67b32b3f70b834a4da9c39efe3d5d59f')
+sha512sums=('dc3d96de93b4b193861142afe5f8120a09faa0c105ba0cc2832e4d0c9f2611bbefa8046620a67267e6c374e5abde0ad829279f62acf8a7e411fd75c182745969')
 
-build() (
+prepare() {
   cd Mozilla-CA-$pkgver
+  # Use system CA store. Replacing the copy in the source tree so the test suite is actually run against it.
+  ln -sf /etc/ssl/certs/ca-certificates.crt lib/Mozilla/CA/cacert.pem
+}
+
+build() {
+  cd Mozilla-CA-$pkgver
   perl Makefile.PL INSTALLDIRS=vendor
   make
-)
+}
 
-check() (
+check() {
   cd Mozilla-CA-$pkgver
   make test
-)
+}
 
-package() (
+package() {
   cd Mozilla-CA-$pkgver
   make install DESTDIR="$pkgdir"
-)
 
+  # Replace CA store here again because the symlink was installed as a file
+  ln -sf /etc/ssl/certs/ca-certificates.crt "$pkgdir"/usr/share/perl5/vendor_perl/Mozilla/CA/cacert.pem
+}
+
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list