aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorMike Sullivan <mksully@us.ibm.com>2017-12-01 18:05:35 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-12-01 18:39:37 +0000
commite7244234130ce51699a3dd85c34370ecc5be0d25 (patch)
tree5a388801139cb306b3b1752314fb339027f57196 /community
parent56dfacfda5ea593f870880eb15502a541e18b26e (diff)
downloadaports-e7244234130ce51699a3dd85c34370ecc5be0d25.tar.bz2
aports-e7244234130ce51699a3dd85c34370ecc5be0d25.tar.xz
community/perl-dancer: modernize APKBUILD
Diffstat (limited to 'community')
-rw-r--r--community/perl-dancer/APKBUILD21
1 files changed, 12 insertions, 9 deletions
diff --git a/community/perl-dancer/APKBUILD b/community/perl-dancer/APKBUILD
index 47d16b8bab..8a607136e3 100644
--- a/community/perl-dancer/APKBUILD
+++ b/community/perl-dancer/APKBUILD
@@ -3,7 +3,7 @@
pkgname=perl-dancer
_pkgreal=Dancer
pkgver=1.3202
-pkgrel=0
+pkgrel=1
pkgdesc="Perl module for Dancer"
url="http://search.cpan.org/dist/Dancer/"
arch="noarch"
@@ -17,26 +17,29 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/B/BI/BIGPRESH/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- make && make test
+ 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="63767e3afc4ee268d78da01345cf79c1 Dancer-1.3202.tar.gz"
-sha256sums="a933e4f8203c7d6c7e0b2bcdd8e54c65095029616b8d07802db4db2fc2657faa Dancer-1.3202.tar.gz"
sha512sums="d2865b694a36375ce3266bca5a1223b1e62365176b750e91fe428e7f8315a061c30b930285ee76c894881e40f4cefa539e3f806b81ae6b6897631ba34dd53676 Dancer-1.3202.tar.gz"