aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/perl-math-calc-units/APKBUILD
blob: 02b4355347936ff592955e5364920e797011b431 (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: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-math-calc-units
_pkgreal=Math-Calc-Units
pkgver=1.07
pkgrel=0
pkgdesc="unknown"
url="http://search.cpan.org/dist/Math-Calc-Units/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SF/SFINK/$_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="56e4be0e64d6c8fc27c8f87d0d3cebd8  Math-Calc-Units-1.07.tar.gz"
sha256sums="61e3cfdb27bb3bee27beb97124dd930760e1039edc1eb7816c2f5627765f8f8f  Math-Calc-Units-1.07.tar.gz"
sha512sums="0758fd67f650cc8b70777a78c471c29e5a463370e47f810f0eaefa51cb832dbe01b55d7c53cb7d3dc70ee6339857b9f344acd7a68c7ea858394c387e87c52b31  Math-Calc-Units-1.07.tar.gz"