# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-sereal-decoder #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Sereal-Decoder pkgver=4.018 pkgrel=1 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 perl-test-deep perl-test-differences" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/Y/YV/YVES/Sereal-Decoder-$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="18e4d54c1930187fbcfc39a39ef8512c1450ac3e5d22bee419e8333cbda1e08bcb1355bc2abfc388f9d45dfae3b8bcc101a19646b7caa670359bae98fccf87a3 Sereal-Decoder-4.018.tar.gz"