aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-async-http/APKBUILD
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-07-20 07:47:04 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-07-25 12:38:00 +0000
commitc45d6bbab7e6d1a76dc5448a02ce36a7106e1ade (patch)
treec284e8dcb172caed234ec44206fabe9bcfc74f10 /main/perl-net-async-http/APKBUILD
parentc47d9caac9685e1a5d73f5908b1149ca26bdaf72 (diff)
downloadaports-c45d6bbab7e6d1a76dc5448a02ce36a7106e1ade.tar.bz2
aports-c45d6bbab7e6d1a76dc5448a02ce36a7106e1ade.tar.xz
main/perl-net-async-http: upgrade to 0.42 and modernize
Diffstat (limited to 'main/perl-net-async-http/APKBUILD')
-rw-r--r--main/perl-net-async-http/APKBUILD27
1 files changed, 15 insertions, 12 deletions
diff --git a/main/perl-net-async-http/APKBUILD b/main/perl-net-async-http/APKBUILD
index 13d6297d5b..18bc3fdb45 100644
--- a/main/perl-net-async-http/APKBUILD
+++ b/main/perl-net-async-http/APKBUILD
@@ -3,9 +3,9 @@
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-net-async-http
_pkgreal=Net-Async-HTTP
-pkgver=0.40
+pkgver=0.42
pkgrel=0
-pkgdesc="use HTTP with C<IO::Async>"
+pkgdesc="Use HTTP with C<IO::Async>"
url="http://search.cpan.org/dist/Net-Async-HTTP/"
arch="noarch"
license="GPL PerlArtistic"
@@ -16,26 +16,29 @@ makedepends="perl-dev $cpanmakedepends perl-test-refcount perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- perl Build.PL installdirs=vendor || return 1
+ perl Build.PL installdirs=vendor
}
build() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- ./Build && ./Build test
+ ./Build
+}
+
+check() {
+ cd "$builddir"
+ ./Build test
}
package() {
- cd "$_builddir"
- ./Build install destdir="$pkgdir" || return 1
+ cd "$builddir"
+ ./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="f82a3fd6aa77a55fbead83321255b965 Net-Async-HTTP-0.40.tar.gz"
-sha256sums="63a91721161a85c055779288f11cd3c0a1b848bb4509fa6fd0e325cb11790b45 Net-Async-HTTP-0.40.tar.gz"
-sha512sums="d07c3fad5963e49c39345243b068ae46004d34fd17ae5594ba1715f6670474fc1acdfb2c9a4d6dada564ccea27f65e569c3b82d0ff9c078ea1e5a1107b4101e1 Net-Async-HTTP-0.40.tar.gz"
+sha512sums="8f8d8e106c243704d8e462505d0ba7b5a7179b7fcd455ea113e18cd207bc2a17c7013745626b87254826793ef105bf788457774e9d6f54cc405411da38d5e5ec Net-Async-HTTP-0.42.tar.gz"