aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-number-delta/APKBUILD
blob: 53893ae87cdfef76bea26caa6d360f806a5a8fb7 (plain)
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
36
37
38
39
40
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"