aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-sereal-encoder/APKBUILD
blob: ccee16ac4f25c37834fa89bf3ed61f7e8c2c9be9 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-sereal-encoder
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Sereal-Encoder
pkgver=4.018
pkgrel=0
pkgdesc="Fast, compact, powerful binary serialization"
url="https://metacpan.org/release/Sereal-Encoder/"
arch="all !armhf" # https://gitlab.alpinelinux.org/alpine/aports/-/issues/11859
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev zstd-dev"
checkdepends="perl-test-warn perl-test-longstring perl-sereal-decoder perl-test-deep perl-test-differences"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/Y/YV/YVES/Sereal-Encoder-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
#[ "$CARCH" = "armhf" ] && options="!check" # zstd tests fail https://gitlab.alpinelinux.org/alpine/aports/-/issues/11644

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="021586f02560906fa315cf7eefc877ff029c123550dd2889a90d8e36e2d480bc4c53fa7437728cb73bda6da886af52f1b58661796f78859c7b41f62a2000a070  Sereal-Encoder-4.018.tar.gz"