blob: bfa87743cc60fba7a3cba6e30ceac6be49494930 (
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
42
43
44
45
46
|
# 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-encoder
_pkgreal=Sereal-Encoder
pkgver=4.007
pkgrel=2
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() {
# 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="cd0cc13993f71cafa496790cec679828a18eedb933c63675adff25bc8cae0a21073b5845a91f8022195225d925f1b49289c62b6faa44bb773384d371bc5a2046 Sereal-Encoder-4.007.tar.gz"
|