aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-starman/APKBUILD
blob: 1ec0ea60e0b88cdd5259a51a379f9418919fbca9 (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 2
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-starman
_pkgreal=Starman
pkgver=0.4014
pkgrel=1
pkgdesc="High-performance preforking PSGI/Plack web server"
url="https://metacpan.org/release/Starman"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-http-message perl-data-dump perl-http-parser-xs perl-test-tcp
	perl-net-server perl-http-date perl-plack"
cpancheckdepends="perl-libwww perl-test-requires"
depends="$cpandepends"
makedepends="perl-dev perl-module-build-tiny"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL installdirs=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	./Build
}

package() {
	./Build install --destdir="$pkgdir" --prefix=/usr --installdirs=vendor
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

check() {
	./Build test
}

sha512sums="27e5735a1bd2c29944c469f19a6e05cae038da0f678ca6a12bdae87dd075e4e433e3f4126507f90284a71aa5baf1b8babd120603d265d8b1f3b7b1a6528e0c9f  Starman-0.4014.tar.gz"