aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-string-crc32/APKBUILD
blob: b7c8b06e875b8bf79f42b318930cc47d4f2ed276 (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
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-string-crc32
_pkgreal=String-CRC32
pkgver=1.8
pkgrel=0
pkgdesc="Perl interface for cyclic redundancy check generation"
url="https://metacpan.org/release/String-CRC32"
arch="all"
license="unrestricted"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/L/LE/LEEJO/String-CRC32-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_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
}

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

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

sha512sums="ea8a3150dbe72343bdd81fd7ced0e9fb167c19f5638a1d20fe6f618b64535a86053cf72706b907f2f7fca5904d5ce6a7bfadf8d17136d04aba5a5500c98c032e  String-CRC32-1.8.tar.gz"