aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-math-basecnv/APKBUILD
blob: 7a5c3c3dcfb4f96847e1fcee3583bb1814ff0e10 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Sergey Safarov <s.safarov@gmail.com>
pkgname=perl-math-basecnv
pkgver=1.14
pkgrel=0
pkgdesc="Math::BaseCnv perl module"
url="http://search.cpan.org/dist/Math-BaseCnv/"
arch="noarch"
license="GPL-3.0"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PI/PIP/Math-BaseCnv-$pkgver.tgz"

builddir="$srcdir"/Math-BaseCnv-$pkgver

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="0100dcf8786fe0983bbddffb2a44876d75cf023b78a04687b4d410c3667e44606f8315fb30ee5ca4efd26d8784be8af07cd810813e72d9b0c9ae16725e09a5e6  Math-BaseCnv-1.14.tgz"