diff options
Diffstat (limited to 'community/perl-crypt-smime')
-rw-r--r-- | community/perl-crypt-smime/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/community/perl-crypt-smime/APKBUILD b/community/perl-crypt-smime/APKBUILD new file mode 100644 index 0000000000..2a723ea360 --- /dev/null +++ b/community/perl-crypt-smime/APKBUILD @@ -0,0 +1,34 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Timothy Legge <timlegge@gmail.com> +# Maintainer: Timothy Legge <timlegge@gmail.com> +pkgname=perl-crypt-smime +_pkgreal=Crypt-SMIME +pkgver=0.25 +pkgrel=2 +pkgdesc="S/MIME message signing, verification, encryption and decryption" +url="https://metacpan.org/release/Crypt-SMIME/" +arch="all" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +makedepends="perl-extutils-cchecker perl-test-exception perl-extutils-pkgconfig +openssl-dev perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/M/MI/MIKAGE/Crypt-SMIME-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +package() { + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="84f61c247d095ad345a6c736120d11c516e776c5f4a599a4c275481c4bd4597fcb2e0a17da5dc3e111310d3f99f9f39fb0876477098d9e6d9eabd777d145176f Crypt-SMIME-0.25.tar.gz" |