summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSíle Ekaterin Liszka <sheila@vulpine.house>2022-05-05 16:38:29 +0000
committerZach van Rijn <me@zv.io>2022-10-21 18:33:58 -0500
commit53a94e0921c784d0b1af2f2751fa5a725e2dafdb (patch)
treea15b81ded30551848341eb61bab72423592b36e4
parentde10fe2952fc5ffdd8de610e1822d6b419981c15 (diff)
downloadpackages-53a94e0921c784d0b1af2f2751fa5a725e2dafdb.tar.gz
packages-53a94e0921c784d0b1af2f2751fa5a725e2dafdb.tar.bz2
packages-53a94e0921c784d0b1af2f2751fa5a725e2dafdb.tar.xz
packages-53a94e0921c784d0b1af2f2751fa5a725e2dafdb.zip
user/perl-test-number-delta: new package
-rw-r--r--user/perl-test-number-delta/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-test-number-delta/APKBUILD b/user/perl-test-number-delta/APKBUILD
new file mode 100644
index 000000000..a7735b63f
--- /dev/null
+++ b/user/perl-test-number-delta/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
+# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
+pkgname=perl-test-number-delta
+_pkgreal=Test-Number-Delta
+_author=DAGOLDEN
+_au=${_author%%"${_author#??}"}
+_a=${_author%%"${_author#?}"}
+pkgver=1.06
+pkgrel=0
+pkgdesc="Compares the difference between numbers against a given tolerance"
+url="https://metacpan.org/pod/Test::Number::Delta"
+arch="noarch"
+license="Apache-2.0"
+depends="perl"
+makedepends=""
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ make test
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="87d64aad1ffc180ac9105d8f80aa1086ae9f6d11d7fead6f77daca6b0440320ed49dc628bed88b67836c091116fa43402b4a902e8319997fbad7a0fa19edfd79 Test-Number-Delta-1.06.tar.gz"