diff options
author | Rasmus Thomsen <oss@cogitri.dev> | 2019-06-07 13:47:26 +0200 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-08-23 11:37:59 +0000 |
commit | d55216a231ea250709db4d0df0ff4bc0adf5a7e4 (patch) | |
tree | c56edaa3dd06eafdef4dc042b5a068505f316f87 /main/perl-io-async | |
parent | 4a1c2560e9f82b0ea22d42fbba65e9994a3bd2cc (diff) | |
download | aports-d55216a231ea250709db4d0df0ff4bc0adf5a7e4.tar.bz2 aports-d55216a231ea250709db4d0df0ff4bc0adf5a7e4.tar.xz |
main/perl-io-async: fix URL&License
* modernize
* run tests in check()
Diffstat (limited to 'main/perl-io-async')
-rw-r--r-- | main/perl-io-async/APKBUILD | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/main/perl-io-async/APKBUILD b/main/perl-io-async/APKBUILD index 53be9db386..3c0d421029 100644 --- a/main/perl-io-async/APKBUILD +++ b/main/perl-io-async/APKBUILD @@ -9,28 +9,27 @@ pkgdesc="Asynchronous event-driven programming" url="https://metacpan.org/release/IO-Async" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" -cpandepends="perl-struct-dumb perl-future" -cpanmakedepends="perl-test-refcount perl-test-fatal perl-test-identity" -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends perl-module-build" +depends="perl-struct-dumb perl-future" +makedepends="perl-dev perl-test-refcount perl-test-fatal perl-test-identity perl-module-build" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz" +source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$builddir" perl Build.PL installdirs=vendor } build() { - cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') - ./Build && ./Build test + ./Build +} + +check() { + ./Build test } package() { - cd "$builddir" ./Build install destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |