aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-plack/APKBUILD
blob: c5ac6e8839ae082dcd4f924c29e41df10bd28753 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-plack
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Plack
pkgver=1.0050
pkgrel=0
pkgdesc="Perl Superglue for Web frameworks and Web Servers (PSGI toolkit)"
url="https://metacpan.org/release/Plack/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="
	perl perl-file-sharedir perl-filesys-notify-simple perl-stream-buffered perl-uri
	perl-devel-stacktrace-ashtml perl-test-tcp perl-try-tiny perl-apache-logformat-compiler
	perl-hash-multivalue perl-http-message perl-cookie-baker perl-www-form-urlencoded
	perl-http-entity-parser perl-http-headers-fast perl-devel-stacktrace
	"
makedepends="perl-file-sharedir-install"
checkdepends="perl-test-requires"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/Plack-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
1b29c50d943d41f9161579af682f8c58c7eec9185c70aeb2f759020f2b0afca98a8e01513496be600bbc23534066932f2b67569c9da054c8bcc9e6b504a8e4b3  Plack-1.0050.tar.gz
"