aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-convert-pem/APKBUILD
blob: a9be6345879be3050a150a23460f9baf13ec10b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-convert-pem
_pkgreal=Convert-PEM
pkgver=0.08
pkgrel=2
pkgdesc="Read/write encrypted ASN.1 PEM files"
url="https://metacpan.org/release/Convert-PEM/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-convert-asn1 perl-crypt-des_ede3 perl-class-errorhandler"
depends="$cpandepends"
makedepends="perl-test-simple perl-test-exception perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BT/BTROTT/Convert-PEM-$pkgver.tar.gz
	remove-test-from-manifest.patch
	0001-Do-not-test-the-reason-for-decryption-failure-on-bad.patch"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	rm -fr "$builddir/inc/Test"
	default_prepare
}

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="d5e4342b40d01d534ec5f81ab009af185f795267c1bce792d26739ab07078a618093c720230ac2b6cf10c4b5ae1c282c94afa5b9db2eef6fd66e684d2080c273  Convert-PEM-0.08.tar.gz
47260ed095310d96c92d51f750d2502bf43d938e9ea3417e86df2c6f4796f5e4a3aa5e272b14394298435e7dcd4b630db17de2ff156e98f55a804ce5e76cb0e7  remove-test-from-manifest.patch
3cfbef7a5fe8c97aada17fc4acae2ef4a242ef89f1592afd0bba8d4095d2027377247eb9f760c2ed75b83f81028462c0ff4c6502a9af9f6e055da8e03d754645  0001-Do-not-test-the-reason-for-decryption-failure-on-bad.patch"