aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/perl-io-multiplex/APKBUILD28
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