aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-crypt-rijndael/APKBUILD
blob: 6f06663be6eb90c1290b00b8f0d1d7f7b7a0bce8 (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
# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Jeff Bilyk <jbilyk@gmail.com>
pkgname=perl-crypt-rijndael
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Crypt-Rijndael
pkgver=1.16
pkgrel=0
pkgdesc="Crypt::CBC compliant Rijndael encryption module"
url="https://metacpan.org/release/Crypt-Rijndael/"
arch="all"
license="LGPL-2.0-or-later"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/L/LE/LEONT/Crypt-Rijndael-$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="e33cb691cd62d9b98f26c8f0d1365437f8a77154a4100be4969a88ad094074fb2f855fcb11541dc63743f861ef0c45944831b7f887df9bbb0b4ec36d6e0fd66d  Crypt-Rijndael-1.16.tar.gz"