aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-class-returnvalue
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-11 11:29:01 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2017-11-13 09:08:07 +0000
commitfa2db80283e46ec561792a600a3c30c6fe9d914c (patch)
tree5fac8c58c565debfba83251c6e954c67e77c857d /main/perl-class-returnvalue
parent4a01614f2204172f776e2131b4cebbe11b123b0f (diff)
downloadaports-fa2db80283e46ec561792a600a3c30c6fe9d914c.tar.bz2
aports-fa2db80283e46ec561792a600a3c30c6fe9d914c.tar.xz
main/perl-class-returnvalue: add missing make dependency and modernize
Diffstat (limited to 'main/perl-class-returnvalue')
-rw-r--r--main/perl-class-returnvalue/APKBUILD31
1 files changed, 13 insertions, 18 deletions
diff --git a/main/perl-class-returnvalue/APKBUILD b/main/perl-class-returnvalue/APKBUILD
index fb7eb55bb3..4bd570a37c 100644
--- a/main/perl-class-returnvalue/APKBUILD
+++ b/main/perl-class-returnvalue/APKBUILD
@@ -2,37 +2,32 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-class-returnvalue
pkgver=0.55
-pkgrel=0
+pkgrel=1
pkgdesc="Class::ReturnValue perl module"
url="http://search.cpan.org/dist/Class-ReturnValue/"
arch="noarch"
license="GPLv2 or Artistic"
depends="perl perl-devel-stacktrace"
-makedepends="perl-dev"
-install=""
+makedepends="perl-dev perl-module-install"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/J/JE/JESSE/Class-ReturnValue-$pkgver.tar.gz"
-_builddir="$srcdir"/Class-ReturnValue-$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/Class-ReturnValue-$pkgver"
build() {
- cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make && make test || return 1
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}