aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-number-misc/APKBUILD
blob: b1dcee5cbab38b4d085712ce5a900e4ca7e09bf2 (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
# Contributor: TBK <tbk@jjtc.eu>
pkgname=perl-number-misc
_pkgreal=Number-Misc
pkgver=1.2
pkgrel=2
pkgdesc="Handy utilities for numbers"
url="https://metacpan.org/release/Number-Misc/"
arch="noarch"
license="GPL PerlArtistic"
options="!check"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MI/MIKO/$_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
}

sha512sums="f160de841bc895481f6d9422ed639391fd9e9b65239e3c0adf25b63e88902e7608049496ecec864cae39a046e5f1903f3e3ede1cb71018203f62da2ded67b8eb  Number-Misc-1.2.tar.gz"