aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-number-misc/APKBUILD
blob: 6cc7ddd59853adee684cc7e2f89b904a0fd8b725 (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
# Contributor: TBK <tbk@jjtc.eu>
pkgname=perl-number-misc
_pkgreal=Number-Misc
pkgver=1.2
pkgrel=0
pkgdesc="Handy utilities for numbers"
url="http://search.cpan.org/dist/Number-Misc/"
arch="noarch"
license="GPL PerlArtistic"
options="!check"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/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"