aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-data-dump/APKBUILD
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-01-01 17:45:15 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2018-01-01 17:45:17 +0000
commitccca3236711b56d6ecc58247063a4e4f51c80476 (patch)
treee36f3bc0f90ed33dda3f9f5c5db143eef78d8c3c /community/perl-data-dump/APKBUILD
parent08c37535977c75460de510b473e579b299a934b0 (diff)
downloadaports-ccca3236711b56d6ecc58247063a4e4f51c80476.tar.bz2
aports-ccca3236711b56d6ecc58247063a4e4f51c80476.tar.xz
community/perl-d*: modernize APKBUILD
Changes: - Move tests to check() - Remove return 1 - Rename _builddir to builddir - Add missing default_prepare in prepare() - Remove old checksums
Diffstat (limited to 'community/perl-data-dump/APKBUILD')
-rw-r--r--community/perl-data-dump/APKBUILD25
1 files changed, 15 insertions, 10 deletions
diff --git a/community/perl-data-dump/APKBUILD b/community/perl-data-dump/APKBUILD
index 60a2d679a4..cfb2b22ad5 100644
--- a/community/perl-data-dump/APKBUILD
+++ b/community/perl-data-dump/APKBUILD
@@ -4,38 +4,43 @@
pkgname=perl-data-dump
_pkgreal=Data-Dump
pkgver=1.23
-pkgrel=0
+pkgrel=1
pkgdesc="Pretty printing of data structures"
url="http://search.cpan.org/dist/Data-Dump/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
-cpanmakedepends=" "
+cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ default_prepare
+
+ 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="762c111e525c82ff23d62c90821b26e9 Data-Dump-1.23.tar.gz"
-sha256sums="af53b05ef1387b4cab4427e6789179283e4f0da8cf036e8db516ddb344512b65 Data-Dump-1.23.tar.gz"
sha512sums="6fd6c23bb6df7f7396219149dbfd23132fc2ea1dd344c32f62fc27a1afeeb28d7ebf2d429184bb6d1189f412e218f9e62a966b49fdd9ad5564e5152d67a02b96 Data-Dump-1.23.tar.gz"