aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-text-csv_xs/APKBUILD
blob: 7f69fe6b19616cc014faf2e2dfc625b6ea280a24 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      

                                                           

                        
           
        
                                     
                                              
          



                                                   
                          
                                                                                  
                                    
 
         


                 
           
                       
 

                                                                 


         
                                                                
            


           
                                      
                                                                           

 
 
                                                                                                                                                                   
# 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.41
pkgrel=0
pkgdesc="Perl module for Text-CSV_XS"
url="https://metacpan.org/release/Text-CSV_XS"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-test-pod perl-test-pod-coverage"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/H/HM/HMBRAND/Text-CSV_XS-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"

check() {
	make test
}

prepare() {
	default_prepare

	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make
}

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


sha512sums="a518a1cfe328c8fb3c439bde5137c4cda6081f6ab2d87fe9a8b2943d05f51705c5dd3ab2500b9f09484418d82577cb6a6e60b1bbe1747a177d2158f7d10b93f6  Text-CSV_XS-1.41.tgz"