aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-sereal-decoder
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-06 10:48:37 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 14:31:23 +0300
commit346a53602478b0d5b8c706b5ed63be2397ca99c8 (patch)
treef3a39af556a08ad7f6da63bd8bfcf4359889bae0 /testing/perl-sereal-decoder
parent893aa16c24c83bf2da71950855ffdede20e9211e (diff)
downloadaports-346a53602478b0d5b8c706b5ed63be2397ca99c8.tar.bz2
aports-346a53602478b0d5b8c706b5ed63be2397ca99c8.tar.xz
testing/perl-serial-decoder: new aport
http://search.cpan.org/dist/Sereal-Decoder/
Diffstat (limited to 'testing/perl-sereal-decoder')
-rw-r--r--testing/perl-sereal-decoder/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-sereal-decoder/APKBUILD b/testing/perl-sereal-decoder/APKBUILD
new file mode 100644
index 0000000000..075692f747
--- /dev/null
+++ b/testing/perl-sereal-decoder/APKBUILD
@@ -0,0 +1,48 @@
+# 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-decoder
+_pkgreal=Sereal-Decoder
+pkgver=3.015
+pkgrel=0
+pkgdesc="Fast, compact, powerful binary deserialization"
+url="http://search.cpan.org/dist/Sereal-Decoder/"
+arch="all"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=""
+cpancheckdepends="perl-test-longstring perl-test-warn"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/Y/YV/YVES/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare || return 1
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="65582a86ff40d02e350bfe759cfda12c3a541c012c55c2a9bfee6cc6df5facbe8088188cb7306685d4b9ab549e8900a7bd599b207325fec7d30d90de3b68c79e Sereal-Decoder-3.015.tar.gz"