aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-plack/APKBUILD
blob: f77f4968ea2d59304bbd659a1f387b667e7acb9b (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-plack
_pkgreal=Plack
pkgver=1.0047
pkgrel=0
pkgdesc="Perl Superglue for Web frameworks and Web Servers (PSGI toolkit)"
url="https://plackperl.org/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-file-sharedir perl-filesys-notify-simple perl-devel-stacktrace
	perl-stream-buffered perl-uri perl-devel-stacktrace-ashtml perl-http-body
	perl-test-tcp perl-try-tiny perl-apache-logformat-compiler
	perl-hash-multivalue perl-http-message"
makedepends="perl-dev perl-test-requires perl-file-sharedir-install"
subpackages="$pkgname-doc"
options="!check" # missing dependencies
source="https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/Plack-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

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
}

check() {
	make test
}

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

sha512sums="95fa7b7c1cc4d94bc077e69b52a6555e6f62e0119a29cb932f554e70a3466e8bb416b5a8e02c2a11c45f60e87fd01ed469c80a1c19c1a2eba7ba5ad2263e994c  Plack-1.0047.tar.gz"