aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-number-delta
diff options
context:
space:
mode:
Diffstat (limited to 'main/perl-test-number-delta')
-rw-r--r--main/perl-test-number-delta/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-test-number-delta/APKBUILD b/main/perl-test-number-delta/APKBUILD
new file mode 100644
index 0000000000..53893ae87c
--- /dev/null
+++ b/main/perl-test-number-delta/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+pkgname=perl-test-number-delta
+_pkgreal=Test-Number-Delta
+pkgver=1.04
+pkgrel=0
+pkgdesc="Compare the difference between numbers against a given tolerance"
+url="http://search.cpan.org/dist/Test-Number-Delta/"
+arch="noarch"
+license="apache_2_0"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="59eb83a84abec511c265b42b444002e8 Test-Number-Delta-1.04.tar.gz"
+sha256sums="883fd8a4a71e867f3bb30879f4c2d91e75610a7bb9822370743be377c3de4dbd Test-Number-Delta-1.04.tar.gz"
+sha512sums="ae0eea95b3d671eac8efef7d9e65335111fc6403921172ed96c597269d56d7e7137ed65f80c896f08c16c6fafe1bd99d7f7d0c99fa0f50d8f659d9e749f9dfbc Test-Number-Delta-1.04.tar.gz"