aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-starlet/APKBUILD
blob: 9e567c351e0e6b1b29edd6caecba0f2d89530c01 (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 1
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-starlet
_pkgreal=Starlet
pkgver=0.21
pkgrel=0
pkgdesc="a simple, high-performance PSGI/Plack HTTP server"
url="http://search.cpan.org/dist/Starlet/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-parallel-prefork perl-server-starter perl-plack"
cpanmakedepends="perl-test-tcp perl-libwww"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/K/KA/KAZUHO/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	make || return 1
	if ! grep -q "VxID: [0-9]*" /proc/self/status; then make test || return 1; fi
}

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

md5sums="1be8005473090059132530a4ba866657  Starlet-0.21.tar.gz"
sha256sums="c5681ff29334a92be950ece715bd297e9c96cc4fc4015fe374bb15aa8d60bbd6  Starlet-0.21.tar.gz"
sha512sums="52e58fc9b51c0eb668e029868f614b76fadc00bfe3f52163e36ea6a49707c07a895b293c383ecfdad44a1264f240fe72c9ccbe484ba3609d51e0ff92ce8be22f  Starlet-0.21.tar.gz"