aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-text-csv_xs/APKBUILD
blob: 890cb06265b0f4112c240bc0197d8d4fef951c90 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-text-csv_xs
_pkgreal=Text-CSV_XS
pkgver=1.11
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=""
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() {
	cd "$_builddir"
	if [ -e Build.PL ]; then
		perl Build.PL installdirs=vendor || return 1
	else
		PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	fi
}

build() {
        cd "$_builddir"
	make && make test
}

package() {
        cd "$_builddir"
        make DESTDIR="$pkgdir" install || return 1
        find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="2c8eeee7ce5ef57e8290c18edcc0ad3e  Text-CSV_XS-1.11.tgz"
sha256sums="ac383e4547ac0d99d9b75fcdb9ad536107c3fc911b5021c137f8c83a5f871583  Text-CSV_XS-1.11.tgz"
sha512sums="6df40806762fc87106606239b0b4e7026e5a8b1a59b043a72a1ed59055eaaf6425ce6333bf2a920fc6215e50aba44a301d215de7ac4aaeaf01a6fde9e00f7232  Text-CSV_XS-1.11.tgz"