# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-sereal _pkgreal=Sereal pkgver=4.007 pkgrel=0 pkgdesc="Fast, compact, powerful binary (de-)serialization" url="https://metacpan.org/release/Sereal" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" cpandepends="perl-sereal-decoder perl-sereal-encoder" cpancheckdepends="perl-test-warn perl-test-longstring" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" checkdepends="$cpancheckdepends" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/Y/YV/YVES/Sereal-$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() { # Fails on builders # t/700_roundtrip/v4/zstd.t # t/700_roundtrip/v4/zstd_force.t [ "$CARCH" = armhf ] && return 0 export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } sha512sums="1e44c2b9affc282d1c966b4549667634a4f23becf416ed6eb37fb5bcbf7e1cdbe88697043454bd6398805801f6250aaecd8a5895b6761342278a40f87f24b69a Sereal-4.007.tar.gz"