diff options
Diffstat (limited to 'community/perl-starlet/APKBUILD')
-rw-r--r-- | community/perl-starlet/APKBUILD | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/community/perl-starlet/APKBUILD b/community/perl-starlet/APKBUILD index 982ac46f1e..43b9eb5b43 100644 --- a/community/perl-starlet/APKBUILD +++ b/community/perl-starlet/APKBUILD @@ -4,33 +4,37 @@ pkgname=perl-starlet _pkgreal=Starlet pkgver=0.30 -pkgrel=0 +pkgrel=1 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" +cpanmakedepends="perl-test-tcp perl-libwww perl-module-install" 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" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + cd "$builddir" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" - make || return 1 + cd "$builddir" + make +} + +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |