aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 17:13:47 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 17:13:47 +0000
commitca73578896744aa46edab3ae22a8f7dd65c0da47 (patch)
treee2a49cf28f6a4ebb483a60c4d1f0ef2b8f219be4
parentcd8e941276d8b6f72900edcdf336769aaf45cfee (diff)
downloadaports-ca73578896744aa46edab3ae22a8f7dd65c0da47.tar.gz
aports-ca73578896744aa46edab3ae22a8f7dd65c0da47.tar.bz2
aports-ca73578896744aa46edab3ae22a8f7dd65c0da47.tar.xz
community/perl-par: modernize and add check
-rw-r--r--community/perl-par/APKBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/community/perl-par/APKBUILD b/community/perl-par/APKBUILD
index d5e94a0cc5..7631c74a88 100644
--- a/community/perl-par/APKBUILD
+++ b/community/perl-par/APKBUILD
@@ -3,27 +3,31 @@
pkgname=perl-par
_pkgname=PAR
pkgver=1.015
-pkgrel=0
+pkgrel=1
pkgdesc="Perl Archive Toolkit"
url="http://search.cpan.org/dist/$_pkgname/"
arch="noarch"
license="GPL PerlArtistic"
depends="perl perl-archive-zip perl-par-dist"
makedepends="perl-dev"
-options="!check"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+ 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
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}