aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-plack-middleware-expires
diff options
context:
space:
mode:
Diffstat (limited to 'testing/perl-plack-middleware-expires')
-rw-r--r--testing/perl-plack-middleware-expires/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/perl-plack-middleware-expires/APKBUILD b/testing/perl-plack-middleware-expires/APKBUILD
new file mode 100644
index 0000000000..9b9fa54d7b
--- /dev/null
+++ b/testing/perl-plack-middleware-expires/APKBUILD
@@ -0,0 +1,47 @@
+# 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-plack-middleware-expires
+_pkgreal=Plack-Middleware-Expires
+pkgver=0.06
+pkgrel=0
+pkgdesc="mod_expires for plack"
+url="http://search.cpan.org/dist/Plack-Middleware-Expires/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-http-message perl-plack perl-http-date perl-try-tiny"
+cpanmakedepends=""
+cpancheckdepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/K/KA/KAZEBURO/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare || return 1
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ perl Build.PL installdirs=vendor || return 1
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ ./Build
+}
+
+package() {
+ cd "$builddir"
+ ./Build install destdir="$pkgdir" || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ ./Build test
+}
+
+sha512sums="081eb536a6ea3e9c47592dc1f99b32f25ff799804ca6f223fbd13f22567dbc3e85572c12b32a26e5ea58e8dc7e0b1ce7d93c4c26523be45330c9f4f6a599046b Plack-Middleware-Expires-0.06.tar.gz"