# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-text-csv_xs _pkgreal=Text-CSV_XS pkgver=1.27 pkgrel=1 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" check() { cd "$builddir" make test } prepare() { default_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 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="d00a51d79d2c9da000fb6da4ec156afce67f3b38913734c16c92a6af32037458d7acfc15f69df87643bc05e52fff856a693b167bf5401301ba876cbb9cadba28 Text-CSV_XS-1.27.tgz"