aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-plack/APKBUILD
blob: e15924584e2b6df901d86ae93dba4cf4f00936c6 (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
44
45
46
47
# 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.0033
pkgrel=1
pkgdesc="Perl Superglue for Web frameworks and Web Servers (PSGI toolkit)"
url="http://search.cpan.org/dist/Plack/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="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"
cpanmakedepends="perl-test-requires"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-file-sharedir-install"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	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
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="bb9335605a103380b06932289d6e99ae9cf58e98fd889542373ef2509269a6e251f1908c168482c455b5b590c8a883072b08c3a7fbfe6596ec60d699e71b2c33  Plack-1.0033.tar.gz"