aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-server/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-08-11 06:35:02 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-08-11 06:39:28 +0000
commitc41812134d11c0ab6c6f0258de05de85638d996b (patch)
tree89f55e31ed62a2cde92116d40c16009b0542df44 /main/perl-net-server/APKBUILD
parentfc8db76a103e62a3b6b4f92801498aee893769ae (diff)
downloadaports-c41812134d11c0ab6c6f0258de05de85638d996b.tar.bz2
aports-c41812134d11c0ab6c6f0258de05de85638d996b.tar.xz
main/perl-net-server: upgrade to 2.009
Modernize APKBUILD, add check()
Diffstat (limited to 'main/perl-net-server/APKBUILD')
-rw-r--r--main/perl-net-server/APKBUILD28
1 files changed, 18 insertions, 10 deletions
diff --git a/main/perl-net-server/APKBUILD b/main/perl-net-server/APKBUILD
index 555071e5fe..8a3bfa8e2b 100644
--- a/main/perl-net-server/APKBUILD
+++ b/main/perl-net-server/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-net-server
_realname=Net-Server
-pkgver=2.008
+pkgver=2.009
pkgrel=0
pkgdesc="Extensible, general Perl server engine"
url="http://search.cpan.org/dist/Net-Server/"
@@ -13,21 +13,29 @@ makedepends="perl-dev"
install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RH/RHANDOM/$_realname-$pkgver.tar.gz"
+builddir="$srcdir/$_realname-$pkgver"
+
+prepare() {
+ cd "$builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
build() {
- cd "$srcdir/$_realname-$pkgver"
+ cd "$builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make
+}
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+check() {
+ cd "$builddir"
+ make test
}
package() {
- cd "$srcdir/$_realname-$pkgver"
+ cd "$builddir"
make DESTDIR="$pkgdir" install
- # creates file collision among perl modules
- find "$pkgdir" -name perllocal.pod -delete
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="85d488bc800f582839dd924ffa3f0d26 Net-Server-2.008.tar.gz"
-sha256sums="0921056aedc871a59c4b76f58764f0e0a16c1816b58c366a9d80e46367744fa0 Net-Server-2.008.tar.gz"
-sha512sums="cbc7697f598db10931a10701a23aa5e98a6eba377bbc6c17d3d77baf26e0e83cf4e9c163e954faca3d3145b33264fd5a10cc2f7c6e219a7d6425ed3cc73f254a Net-Server-2.008.tar.gz"
+sha512sums="36409f8d2478877c68cbfcbe9c08045b0c24a926b64f022faf3de8f4b4369ff417d5c41ff1e9800553c38da29c6d72ef301119c956cb26439f6b6366ff4b459c Net-Server-2.009.tar.gz"