aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-sereal-decoder/APKBUILD
blob: 223808b9b71ac4096fab982e2198cc10a37d0ba4 (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
36
37
38
39
40
41
# 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-sereal-decoder
_pkgreal=Sereal-Decoder
pkgver=4.011
pkgrel=0
pkgdesc="Fast, compact, powerful binary deserialization"
url="https://metacpan.org/release/Sereal-Decoder"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev zstd-dev"
checkdepends="perl-test-longstring perl-test-warn"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/Y/YV/YVES/Sereal-Decoder-$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="f80f07ae3c506be17b66b84bc65809c15d43a2039958ade2e0fed5bf8b0bef76728d62fd0d614cb84b4f079262d6f176899538e4abbba2c2499e52cad90e9207  Sereal-Decoder-4.011.tar.gz"