aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-par-dist
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 17:16:40 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 17:16:40 +0000
commite03f088c12988b153e39fa090308cfc760c6cfeb (patch)
treecfff5c06bb6bdef4c0171624617d34e854d048f3 /community/perl-par-dist
parentca73578896744aa46edab3ae22a8f7dd65c0da47 (diff)
downloadaports-e03f088c12988b153e39fa090308cfc760c6cfeb.tar.gz
aports-e03f088c12988b153e39fa090308cfc760c6cfeb.tar.bz2
aports-e03f088c12988b153e39fa090308cfc760c6cfeb.tar.xz
community/perl-par-dist: modernize and add check
Diffstat (limited to 'community/perl-par-dist')
-rw-r--r--community/perl-par-dist/APKBUILD20
1 files changed, 12 insertions, 8 deletions
diff --git a/community/perl-par-dist/APKBUILD b/community/perl-par-dist/APKBUILD
index 450b0585a3..0c3c4b10fc 100644
--- a/community/perl-par-dist/APKBUILD
+++ b/community/perl-par-dist/APKBUILD
@@ -3,7 +3,7 @@
pkgname=perl-par-dist
pkgver=0.49
_realname=PAR-Dist-$pkgver
-pkgrel=0
+pkgrel=1
pkgdesc="Create and manipulate PAR distributions"
url="http://search.cpan.org/dist/PAR-Dist/"
arch="noarch"
@@ -15,20 +15,24 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/PAR-Dist-0.49.tar.gz"
-_builddir="$srcdir"/$_realname
+builddir="$srcdir/$_realname"
build() {
- cd "$_builddir"
+ cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+ 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
}
-md5sums="bd852113974544f3c8c107ab4055cf8c PAR-Dist-0.49.tar.gz"
-sha256sums="9e47220b594a27bd1750bcfa1d6f60a57ae670c68ce331895a79f08bac671e1d PAR-Dist-0.49.tar.gz"
sha512sums="5b0b69e9436d49ab47c4bca8d48790bbc04fec526eeec96a75c768b13f318cf3a0fb2b1a3ab9f835fb4326af2d1339f85257ec5e96f4dfe0efd77c9a36a89acc PAR-Dist-0.49.tar.gz"