diff options
author | TBK <tbk@jjtc.dk> | 2017-06-19 23:20:37 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-07-10 10:25:36 +0000 |
commit | a4b23b09f2ba9c3bb67caa4642ec2c653d3159c2 (patch) | |
tree | f4c2083c52a62d3ff91e903e758bc061813be6d5 /testing/perl-number-misc | |
parent | fccf9e600b98785ba9e0ed7a21dc12f4a5042a0a (diff) | |
download | aports-a4b23b09f2ba9c3bb67caa4642ec2c653d3159c2.tar.bz2 aports-a4b23b09f2ba9c3bb67caa4642ec2c653d3159c2.tar.xz |
testing/perl-number-misc: new aport
Diffstat (limited to 'testing/perl-number-misc')
-rw-r--r-- | testing/perl-number-misc/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/perl-number-misc/APKBUILD b/testing/perl-number-misc/APKBUILD new file mode 100644 index 0000000000..6cc7ddd598 --- /dev/null +++ b/testing/perl-number-misc/APKBUILD @@ -0,0 +1,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" |