aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-crypt-cast5/APKBUILD
blob: a0f63d85d3e723ac5194946e3b222a65d858311e (plain)
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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-crypt-cast5
_pkgreal=Crypt-CAST5
pkgver=0.05
pkgrel=7
pkgdesc="CAST5 block cipher"
url="https://metacpan.org/release/Crypt-CAST5"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/B/BO/BOBMATH/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make && make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="f4a876c68885950d5df3c30ede634787  Crypt-CAST5-0.05.tar.gz"
sha256sums="9b51fc769c34ebb7b605927705af31af277e2532f0c03ed53755d064cdde1307  Crypt-CAST5-0.05.tar.gz"
sha512sums="717e88f00211f2820a8a867a65ad7b563b6b3546c6399ca45393a31b253a8c75fb9a28d2d50eb79809b93c4745812181f2a12b371f3320c6467dcad21d92c994  Crypt-CAST5-0.05.tar.gz"