aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-11 12:16:55 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2017-11-13 09:08:07 +0000
commitfc9b0716d72699cb453f56140061d911a25d1516 (patch)
treec586fa100d5282ed449c8350f3de6db0f2164564
parenta5b7a19f85fdcfaa8c8112b342e8358297a729d8 (diff)
downloadaports-fc9b0716d72699cb453f56140061d911a25d1516.tar.bz2
aports-fc9b0716d72699cb453f56140061d911a25d1516.tar.xz
main/perl-server-starter: add missing make dependency and modernize
-rw-r--r--main/perl-server-starter/APKBUILD28
1 files changed, 16 insertions, 12 deletions
diff --git a/main/perl-server-starter/APKBUILD b/main/perl-server-starter/APKBUILD
index c959ea0e55..ffebf11a38 100644
--- a/main/perl-server-starter/APKBUILD
+++ b/main/perl-server-starter/APKBUILD
@@ -4,37 +4,41 @@
pkgname=perl-server-starter
_pkgreal=Server-Starter
pkgver=0.15
-pkgrel=0
-pkgdesc="a superdaemon for hot-deploying server programs"
+pkgrel=1
+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 "
+cpanmakedepends="perl-test-tcp"
depends="$cpandepends"
-makedepends="perl-dev $depends $cpanmakedepends"
+makedepends="perl-dev $depends $cpanmakedepends perl-module-install"
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"
+ default_prepare
+
+ cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
- make || return 1
+ cd "$builddir"
+ make
+}
+
+check() {
+ cd "$builddir"
if ! grep -q "VxID: [0-9]*" /proc/self/status; then make test || return 1; fi
}
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="1b5b7635a9dabe3f2d60e25e2aae4c24 Server-Starter-0.15.tar.gz"
-sha256sums="07837cecbde263e94f0afa5daaa78012eecd28bd9f4a5df09f24a86882902f9f Server-Starter-0.15.tar.gz"
sha512sums="2957a4aed7c7ffacb81bbdd5f9e68acdbe9fbd78641cd8746bb2f35deeea8c96cd84c50076791cc5fcba108b992a238c492da59baa40b5b5d1303883127d9e89 Server-Starter-0.15.tar.gz"