diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2012-10-29 14:43:02 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2012-10-29 14:43:34 +0000 |
commit | 5ca58bba809bc98b8ec35e444bd4e5f298db4a4a (patch) | |
tree | 14768675ded1bd099a8b80ca03b6d648b8410c79 /testing/perl-number-format | |
parent | 769b0b1779a6969ac4d73a2d3fff69717f21bac5 (diff) | |
download | aports-5ca58bba809bc98b8ec35e444bd4e5f298db4a4a.tar.bz2 aports-5ca58bba809bc98b8ec35e444bd4e5f298db4a4a.tar.xz |
testing/perl-number-format: new aport
Diffstat (limited to 'testing/perl-number-format')
-rw-r--r-- | testing/perl-number-format/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-number-format/APKBUILD b/testing/perl-number-format/APKBUILD new file mode 100644 index 0000000000..b0d34f0314 --- /dev/null +++ b/testing/perl-number-format/APKBUILD @@ -0,0 +1,39 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=perl-number-format +_pkgreal=Number-Format +pkgver=1.73 +pkgrel=0 +pkgdesc="Perl extension for formatting numbers" +url="http://search.cpan.org/dist/Number-Format/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="perl-test-simple" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/W/WR/WRW/$_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 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="3a4188de6e84b04361def285b93dc240 Number-Format-1.73.tar.gz" |