aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-text-csv_xs/APKBUILD
blob: 4bc1ea0e900bc8b88296620b5faff741bc59b2a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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.26
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="833ef0394d21a9086004eb15a006d4bc  Text-CSV_XS-1.26.tgz"
sha256sums="e0cdb04b32a64632b4c99927b31100578a75c53d0ab2a5bc1686151706e38662  Text-CSV_XS-1.26.tgz"
sha512sums="f3e2841638e212f4858b230159ee2a246732d9f5739ce2adbd9778a630852946a9da11c0f270828b880ac6e160611817ffbc0f59f42f20ed64bc82255cdeed7b  Text-CSV_XS-1.26.tgz"