archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-text-csv / trunk / PKGBUILD
blob9f43dd947b62a9a6f43c2d04fdb5e626d38135cb
1 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
3 pkgname='perl-text-csv'
4 _dist="Text-CSV"
5 pkgver=2.02
6 pkgrel=1
7 pkgdesc="comma-separated values manipulator"
8 arch=('any')
9 license=('PerlArtistic' 'GPL')
10 options=('!emptydirs')
11 depends=('perl')
12 url="https://metacpan.org/dist/$_dist"
13 source=("https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/${_dist}-${pkgver}.tar.gz")
14 md5sums=('b25b9c6bb45c128484393efe082a8791')
15 sha512sums=('0efb9396f5f02c3fc478f5d88a13bdfd1c615dde4ff3b671bc95e380e107b497634dc17e282dbfe3956a98a0d28f8156fe5d851483595c21d29674d535fcdaf6')
17 unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
19 build() {
20     cd $_dist-$pkgver
21     export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
22     perl Makefile.PL
23     make
26 check() {
27     cd $_dist-$pkgver
28     export PERL_MM_USE_DEFAULT=1
29     make test
32 package() {
33     cd $_dist-$pkgver
34     make install INSTALLDIRS=vendor DESTDIR="$pkgdir"