diff options
-rw-r--r-- | community/perl-http-server-simple/APKBUILD | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/community/perl-http-server-simple/APKBUILD b/community/perl-http-server-simple/APKBUILD index dcb4e915cf..bda6411e57 100644 --- a/community/perl-http-server-simple/APKBUILD +++ b/community/perl-http-server-simple/APKBUILD @@ -2,39 +2,43 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=perl-http-server-simple _pkgreal=HTTP-Server-Simple -pkgver=0.51 -pkgrel=1 +pkgver=0.52 +pkgrel=0 pkgdesc="Lightweight HTTP server" url="http://search.cpan.org/dist/HTTP-Server-Simple/" arch="noarch" license="GPL PerlArtistic" cpandepends="perl-cgi" cpanmakedepends="" +checkdepends="perl-test-pod perl-test-pod-coverage" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/B/BP/BPS/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" + +check() { + cd "$builddir" + make test +} prepare() { - cd "$_builddir" + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="ef736daddc7a32a29207fa4ed5f5d62e HTTP-Server-Simple-0.51.tar.gz" -sha256sums="b9dc5c9f12c16ca39a96f0ede1e27a18a5594274ff8f583000788a7fca136dfb HTTP-Server-Simple-0.51.tar.gz" -sha512sums="92cb45fc8b57237c064b780ccdfd3ca959daff73cb054590574053cc3dedc81e14627c2aee6d26da48f717f31925d099dd9d11b0e9cd0a98cb3b06221820fabd HTTP-Server-Simple-0.51.tar.gz" +sha512sums="57c0aa4ceb7e0f430f577e24c275d96d54ceb15ddf6e53710067f57dac50e8a57661399d0093edf28c1ff7b6ed313471cded48f5792349191b8d60d8d7cde2d1 HTTP-Server-Simple-0.52.tar.gz" |