aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-test-differences/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/perl-test-differences/APKBUILD')
-rw-r--r--community/perl-test-differences/APKBUILD27
1 files changed, 16 insertions, 11 deletions
diff --git a/community/perl-test-differences/APKBUILD b/community/perl-test-differences/APKBUILD
index 44f7b599ca..bf1d4dea7e 100644
--- a/community/perl-test-differences/APKBUILD
+++ b/community/perl-test-differences/APKBUILD
@@ -4,7 +4,7 @@
pkgname=perl-test-differences
_pkgreal=Test-Differences
pkgver=0.64
-pkgrel=0
+pkgrel=1
pkgdesc="Test strings and data structures and show differences if not ok"
url="http://search.cpan.org/dist/Test-Differences/"
arch="noarch"
@@ -15,25 +15,30 @@ depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DC/DCANTRELL/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
- perl Build.PL installdirs=vendor || return 1
+ default_prepare
+
+ cd "$builddir"
+ perl Build.PL installdirs=vendor
}
build() {
- cd "$_builddir"
- export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- ./Build && ./Build test
+ cd "$builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ ./Build
+}
+
+check() {
+ cd "$builddir"
+ ./Build test
}
package() {
- cd "$_builddir"
- ./Build install destdir="$pkgdir" || return 1
+ cd "$builddir"
+ ./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="ecfda620fe133e36a6e392d94ab8424d Test-Differences-0.64.tar.gz"
-sha256sums="9f459dd9c2302a0a73e2f5528a0ce7d09d6766f073187ae2c69e603adf2eb276 Test-Differences-0.64.tar.gz"
sha512sums="118a4b8e3f61f64d6676c82913bb605a843a408f3fc5d960b40cc86f10423380a203b2a5604e15ba8d4e0cff96af88b551fba1c7aa2ada3c0ef408a27ee5f069 Test-Differences-0.64.tar.gz"