# Maintainer: Felix Yan # Contributor: Justin Davis (juster) pkgname=perl-mozilla-ca pkgver=20221114 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/H/HA/HAARG/Mozilla-CA-$pkgver.tar.gz") sha512sums=('c996576cf48c1c0691c5fdde6a029f713dfd4d3f2068754702c8015b90faaf119bd54d673d9ad7cfe0c2f33307b230a7b6282af1dccbcf8a01f1290d5bb9fe81') 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: