diff options
Diffstat (limited to 'unmaintained/perl-math-calc-units/APKBUILD')
-rw-r--r-- | unmaintained/perl-math-calc-units/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/unmaintained/perl-math-calc-units/APKBUILD b/unmaintained/perl-math-calc-units/APKBUILD new file mode 100644 index 0000000000..02b4355347 --- /dev/null +++ b/unmaintained/perl-math-calc-units/APKBUILD @@ -0,0 +1,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" |