aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-06-30 15:26:11 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-06-30 15:26:11 +0000
commit4c9c96addb1935adfcc9dcbc609c0c9a99477a6b (patch)
treebec1ad866adcf8a95a964171ed67b2c6060c2773 /community
parent9072fa256a6f8259a8c83f70c8afa676c612c79a (diff)
downloadaports-4c9c96addb1935adfcc9dcbc609c0c9a99477a6b.tar.bz2
aports-4c9c96addb1935adfcc9dcbc609c0c9a99477a6b.tar.xz
community/perl-starlet: fix build, modernize APKBUILD, add check()
Diffstat (limited to 'community')
-rw-r--r--community/perl-starlet/APKBUILD22
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
}