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

                                                           
                                
                      
           

                                            
                                                      
             
                                               

                                                                   

                                       
                              
                          
                                                                                           
 
                                    
           


                                                                 


         







                                                                


           

                                      


                                                                           
                                                                                                                                                                              
# 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=${pkgname#*-}
pkgver=0.29
pkgrel=0
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"
cpandepends="perl-b-hooks-endofscope perl-namespace-clean"
cpanmakedepends="perl-sub-name perl-test-requires perl-sub-install"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="perl-test-needs"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/namespace-autoclean-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

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

check() {
	cd "$builddir"
	make test
}

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

sha512sums="64dee8009c8ab587c1aef504c0b429248a9069e6cfbfcb4062b83ddf56c82121be66f821013f3251e6863935429e0663aec82202352904983db600a79348732c  namespace-autoclean-0.29.tar.gz"