diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-09-13 07:13:40 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-09-13 07:15:43 +0000 |
commit | fb378a017bc6eba8610438dac4bccce51210a84c (patch) | |
tree | 9c89d8ee08d4039f83ea513dbeb31dd71a95fdf8 /community/perl-text-csv_xs | |
parent | 71a3797b2a3035ba71846a2bae312c26e46cf116 (diff) | |
download | aports-fb378a017bc6eba8610438dac4bccce51210a84c.tar.bz2 aports-fb378a017bc6eba8610438dac4bccce51210a84c.tar.xz |
community/perl-[class-factoryutil|datetime-format-builder|sort-key|text-csv_xs]: moved from testing
Diffstat (limited to 'community/perl-text-csv_xs')
-rw-r--r-- | community/perl-text-csv_xs/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/community/perl-text-csv_xs/APKBUILD b/community/perl-text-csv_xs/APKBUILD new file mode 100644 index 0000000000..67396ec0e7 --- /dev/null +++ b/community/perl-text-csv_xs/APKBUILD @@ -0,0 +1,43 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-text-csv_xs +_pkgreal=Text-CSV_XS +pkgver=1.25 +pkgrel=0 +pkgdesc="Perl module for Text-CSV_XS" +url="http://search.cpan.org/dist/Text-CSV_XS/" +arch="all" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="perl-test-pod perl-test-pod-coverage" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/H/HM/HMBRAND/$_pkgreal-$pkgver.tgz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + 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="2b3fbdf630926d48f016900c84d27148 Text-CSV_XS-1.25.tgz" +sha256sums="b3742f3ed7361f2215baec3b807e16ee16ef0d0166c2359e78802e9ef172f41b Text-CSV_XS-1.25.tgz" +sha512sums="768c9b5795efb0902bb47e66132cdffbfcf1cfefb961387afbc089025381af69a6ac08b390f78221de9e8e19e25ce066f774f2fc6bd034ea0cd9949b744e65f8 Text-CSV_XS-1.25.tgz" |