aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-test-deep-fuzzy/APKBUILD
blob: a43c15658bb787f1347e305e8ae3a98f4c28e71d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-test-deep-fuzzy
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Test-Deep-Fuzzy
pkgver=0.01
pkgrel=0
pkgdesc="fuzzy number comparison with Test::Deep"
url="https://metacpan.org/release/Test-Deep-Fuzzy/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-test-deep perl-math-round"
makedepends="perl-dev perl-module-build-tiny perl-module-build"
checkdepends="perl-test-deep"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/K/KA/KARUPA/Test-Deep-Fuzzy-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="424aa135c0eda4ae09dec630656ebb5f14ce4521d90867e3383146eecd59db269fdffa3116e8b6db0cc6dba07f19a844925f4c8ca890f699d9dc407afa9e1e85  Test-Deep-Fuzzy-0.01.tar.gz"