aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-namespace-autoclean/APKBUILD
blob: e62c3ff403abf194d1bd8f5b2bf125fdcd25a908 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      
                                                              

                                                           
                                
                            
           
        
                                            
                                                       
             
                                               


                                                                             
                          
                                                                                           
                                    

         
                                                                
                                                                     



            
                                                                
                 


           
                                      


                                                                           
                                                                                                                                                                              
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-namespace-autoclean
_pkgreal=namespace-autoclean
pkgver=0.29
pkgrel=2
pkgdesc="Keep imports out of your namespace"
url="https://metacpan.org/release/namespace-autoclean/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-sub-identify perl-b-hooks-endofscope perl-namespace-clean"
makedepends="perl-dev"
checkdepends="perl-test-needs perl-devel-overloadinfo"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/namespace-autoclean-$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="64dee8009c8ab587c1aef504c0b429248a9069e6cfbfcb4062b83ddf56c82121be66f821013f3251e6863935429e0663aec82202352904983db600a79348732c  namespace-autoclean-0.29.tar.gz"