# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-sereal-encoder _pkgreal=Sereal-Encoder pkgver=4.007 pkgrel=1 pkgdesc="Fast, compact, powerful binary serialization" url="https://metacpan.org/release/Sereal-Encoder" arch="all" license="GPL-1.0-or-later OR Artistic-1.0-Perl" cpancheckdepends="perl-test-warn perl-test-longstring perl-sereal-decoder" makedepends="perl-dev zstd-dev" checkdepends="$cpancheckdepends" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/Y/YV/YVES/Sereal-Encoder-$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="cd0cc13993f71cafa496790cec679828a18eedb933c63675adff25bc8cae0a21073b5845a91f8022195225d925f1b49289c62b6faa44bb773384d371bc5a2046 Sereal-Encoder-4.007.tar.gz"