Date: Monday, June 27, 2022 @ 18:30:07 Author: felixonmars Revision: 449495
archrelease: copy trunk to testing-any Added: perl-mozilla-ca/repos/testing-any/ perl-mozilla-ca/repos/testing-any/PKGBUILD (from rev 449494, perl-mozilla-ca/trunk/PKGBUILD) ----------+ PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) Copied: perl-mozilla-ca/repos/testing-any/PKGBUILD (from rev 449494, perl-mozilla-ca/trunk/PKGBUILD) =================================================================== --- testing-any/PKGBUILD (rev 0) +++ testing-any/PKGBUILD 2022-06-27 18:30:07 UTC (rev 449495) @@ -0,0 +1,41 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Justin Davis (juster) <jrc...@gmail.com> + +pkgname=perl-mozilla-ca +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' '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=('dc3d96de93b4b193861142afe5f8120a09faa0c105ba0cc2832e4d0c9f2611bbefa8046620a67267e6c374e5abde0ad829279f62acf8a7e411fd75c182745969') + +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() { + cd Mozilla-CA-$pkgver + make test +} + +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: