summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-12-27 20:47:11 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-12-27 20:47:11 +0100
commit6a267b66c0453cc524c87ea6424bb14eaad30369 (patch)
tree3e19239e805d1f56bb7e65bf55be0f90b90f53cc
parent39affe011f6364608a4527601183b038a2bd4f12 (diff)
downloadaports-6a267b66c0453cc524c87ea6424bb14eaad30369.zip
main/perl-test-sharedfork: modernize
-rw-r--r--main/perl-test-sharedfork/APKBUILD32
1 files changed, 11 insertions, 21 deletions
diff --git a/main/perl-test-sharedfork/APKBUILD b/main/perl-test-sharedfork/APKBUILD
index 3f626cb7959..f8c9014d63c 100644
--- a/main/perl-test-sharedfork/APKBUILD
+++ b/main/perl-test-sharedfork/APKBUILD
@@ -2,40 +2,30 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-test-sharedfork
pkgver=0.35
-pkgrel=0
+pkgrel=1
pkgdesc="Test::SharedFork perl module"
-url="http://search.cpan.org/dist/Test-SharedFork/"
+url="https://metacpan.org/release/Test-SharedFork"
arch="noarch"
-license="GPL-2.0 or Artistic"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-test-requires"
makedepends="perl-dev"
-install=""
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/Test-SharedFork-$pkgver.tar.gz"
+source="https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Test-SharedFork-$pkgver.tar.gz"
-_builddir="$srcdir"/Test-SharedFork-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir"/Test-SharedFork-$pkgver
build() {
- cd "$_builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
- make || return 1
+ make
+}
+
+check() {
+ make test
}
package() {
- cd "$_builddir"
- make install DESTDIR=$pkgdir || return 1
+ make install DESTDIR=$pkgdir
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="3101aea2e3ae41d48fd8874414430cef Test-SharedFork-0.35.tar.gz"
-sha256sums="2932e865610e80758f764c586757ef8e11db1284d958e25e4b7a85098414c59f Test-SharedFork-0.35.tar.gz"
sha512sums="e5948dfb34cfaf35a2fb2783c726f1cea2ae2f4bbdc4cbb912f83c877422ceabb3e0323c8c669b3c3a08e6d2a12106309528f0f674657001e6aeb3cb3c1dfd9f Test-SharedFork-0.35.tar.gz"