aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-file-temp/APKBUILD
blob: c65758ec525888a35233d3fe2caad771f64e9e7a (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      

                                                   
                                                              
                  
             

                                                           
                                             
             
                                               
              
                      
                          
                                                                                 
                                    
 
         
                                                                
                                                                     



            
                                                                
                 


           
                                      


                                                                           

                                                                                                                                                                      
# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-file-temp
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=File-Temp
pkgver=0.2311
pkgrel=0
pkgdesc="return name and handle of a temporary file safely"
url="https://metacpan.org/release/File-Temp/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/File-Temp-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

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

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


sha512sums="2db3f03f4d25013c60585cd3e6aa7e68fe9bb26f1957adf6674e9cae9e963a41c559d36862943703f567d116c82747b4fae0612253a784addeb53d7867a232d1  File-Temp-0.2311.tar.gz"