aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-plack-middleware-reverseproxy/APKBUILD
blob: a59818b6c8596d0ac6e02b9871ee3eadffba3782 (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
# 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-reverseproxy
_pkgreal=Plack-Middleware-ReverseProxy
pkgver=0.16
pkgrel=1
pkgdesc="Supports app to run as a reverse proxy backend"
url="https://metacpan.org/release/Plack-Middleware-ReverseProxy"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-plack"
makedepends="perl-module-install"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/Plack-Middleware-ReverseProxy-$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() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

sha512sums="5c3610d1a108e63c1e26fbe6f269d5805345db779f5e3f6dace659875632ba428e8bc76317d5c5ab896ab57eb615edfa6d9b99153f41a8864ee0f093250ac1f7  Plack-Middleware-ReverseProxy-0.16.tar.gz"