aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-http-parser-xs
diff options
context:
space:
mode:
Diffstat (limited to 'testing/perl-http-parser-xs')
-rw-r--r--testing/perl-http-parser-xs/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-http-parser-xs/APKBUILD b/testing/perl-http-parser-xs/APKBUILD
new file mode 100644
index 0000000000..0d92708cb5
--- /dev/null
+++ b/testing/perl-http-parser-xs/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-http-parser-xs
+_pkgreal=HTTP-Parser-XS
+pkgver=0.17
+pkgrel=0
+pkgdesc="a fast, primitive HTTP request parser"
+url="http://search.cpan.org/dist/HTTP-Parser-XS/"
+arch="all"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=""
+cpancheckdepends=""
+depends="$cpandepends"
+makedepends="perl-dev perl-module-install $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/K/KA/KAZUHO/$_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="44375b93e8aea04bedee283b1796eb6e94a2920be7ae29fe2f7d83491005b4d8f29047ddf52c6d7f62cf5a9f2575d7f6ea7d357e178536f60dd2c3cee08f495e HTTP-Parser-XS-0.17.tar.gz"