aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-text-csv_xs/APKBUILD
blob: ab046a6a3a9c413cf6c8eb1e56e23f81547f5b1f (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 <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-text-csv_xs
_pkgreal=Text-CSV_XS
pkgver=1.22
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="05b8fd5fc9f9bc90f3889a146a1da523  Text-CSV_XS-1.22.tgz"
sha256sums="e253853694e68eeaf08ca413bb05d457327754b9e246fd5242919849ecf007f7  Text-CSV_XS-1.22.tgz"
sha512sums="a324a5db928b11e197650841a837787f010e1a2d990f55855edce9ae3b30fe75429f464a95775b7c706d84cc654c132f69a24eb610422db008f31d593e320fe8  Text-CSV_XS-1.22.tgz"