summaryrefslogtreecommitdiffstats
path: root/testing/perl-text-csv_xs/APKBUILD
blob: 4c2e7b45208ea5550fec54b0ad9d4b6f18a3f2dc (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.08
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="e311a7dbec864744d12c9471a947abd9  Text-CSV_XS-1.08.tgz"
sha256sums="3c8284c47d403138adbf1320992fa75a13937995ff9f794f2be6dbdf992cb3a9  Text-CSV_XS-1.08.tgz"
sha512sums="5fcd3a4b98264867eaa80d429aafb287babeb3b1e127fbec87439383ee5a5dba378e3acc48d41f8f0b6babbee5e0b7ccfe3e6cf8583247e53baece6943f6aa83  Text-CSV_XS-1.08.tgz"