aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-number-compare/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/perl-number-compare/APKBUILD')
-rw-r--r--community/perl-number-compare/APKBUILD23
1 files changed, 14 insertions, 9 deletions
diff --git a/community/perl-number-compare/APKBUILD b/community/perl-number-compare/APKBUILD
index 5da1cab633..ba8bab2f93 100644
--- a/community/perl-number-compare/APKBUILD
+++ b/community/perl-number-compare/APKBUILD
@@ -4,7 +4,7 @@
pkgname=perl-number-compare
_pkgreal=Number-Compare
pkgver=0.03
-pkgrel=0
+pkgrel=1
pkgdesc="unknown"
url="http://search.cpan.org/dist/Number-Compare/"
arch="noarch"
@@ -16,26 +16,31 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RC/RCLAMP/$_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="ded4085a8fc96328742785574ca65208 Number-Compare-0.03.tar.gz"
-sha256sums="83293737e803b43112830443fb5208ec5208a2e6ea512ed54ef8e4dd2b880827 Number-Compare-0.03.tar.gz"
sha512sums="fc7efb0177bcb84142619b7d8c0252f4548e547650ddbe9cfafaba97b8ae791c20fbffa6f8b01449b9dd217d9914f94bfeaff57cdfdc2c11e2a1456992bd9893 Number-Compare-0.03.tar.gz"