# 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-server-starter
_pkgreal=Server-Starter
pkgver=0.15
pkgrel=0
pkgdesc="a superdaemon for hot-deploying server programs"
url="http://search.cpan.org/dist/Server-Starter/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-proc-wait3 perl-list-moreutils perl-scope-guard"
cpanmakedepends="perl-test-tcp   "
depends="$cpandepends"
makedepends="perl-dev $depends $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="1b5b7635a9dabe3f2d60e25e2aae4c24  Server-Starter-0.15.tar.gz"
sha256sums="07837cecbde263e94f0afa5daaa78012eecd28bd9f4a5df09f24a86882902f9f  Server-Starter-0.15.tar.gz"
sha512sums="2957a4aed7c7ffacb81bbdd5f9e68acdbe9fbd78641cd8746bb2f35deeea8c96cd84c50076791cc5fcba108b992a238c492da59baa40b5b5d1303883127d9e89  Server-Starter-0.15.tar.gz"