diff options
author | Rasmus Thomsen <oss@cogitri.dev> | 2019-06-07 13:31:24 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-07-22 11:05:36 +0000 |
commit | 1b9fe2c22938a6eb305955dddca3e4a243861f5a (patch) | |
tree | dac32fc096364aa813f882c236fc07011230c61d | |
parent | 19a4e530f0a8642d6837c7e5c2f1cd3c3d61b931 (diff) | |
download | aports-1b9fe2c22938a6eb305955dddca3e4a243861f5a.tar.bz2 aports-1b9fe2c22938a6eb305955dddca3e4a243861f5a.tar.xz |
main/perl-io-multiplex: fix URL&License
* modernize
* run tests
-rw-r--r-- | main/perl-io-multiplex/APKBUILD | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/main/perl-io-multiplex/APKBUILD b/main/perl-io-multiplex/APKBUILD index dbb6bb806f..eec29dfe12 100644 --- a/main/perl-io-multiplex/APKBUILD +++ b/main/perl-io-multiplex/APKBUILD @@ -3,32 +3,30 @@ pkgname=perl-io-multiplex _realname=IO-Multiplex pkgver=1.16 -pkgrel=1 +pkgrel=2 pkgdesc="Perl module to manage IO on many file handles" -url="http://search.cpan.org/~markov/IO-Multiplex/" +url="https://metacpan.org/pod/IO::Multiplex" arch="noarch" -license="Artistic-Perl-1.0 GPL+" +license="Artistic-Perl-1.0 OR GPL-1.0-or-later" depends="perl" makedepends="perl-dev" -install= subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/B/BB/BBB/$_realname-$pkgver.tar.gz" +source="https://cpan.metacpan.org/authors/id/B/BB/BBB/$_realname-$pkgver.tar.gz" +builddir="$srcdir"/$_realname-$pkgver -_builddir="$srcdir"/$_realname-$pkgver - -prepare() { - cd $_builddir - return 0 +build() { + cd "$builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make } -build() { - cd $_builddir - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 +check() { + cd "$builddir" + make test } package() { - cd $_builddir + cd "$builddir" make DESTDIR="$pkgdir" install # creates file collision among perl modules find "$pkgdir" -name perllocal.pod -delete |