aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-text-csv_xs/APKBUILD
blob: 7d19ef5c3cf48d18eba0611018454d2968dcce04 (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.43
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="96dabb3e2436dd8629db22e13995048b27728d21f48fc774a4b7d912ec43706514543fd4d713244d21c99ae22b62b2d4b4e8cffc31ae7a06e02b4412beb5665f  Text-CSV_XS-1.43.tgz"