aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-class-load/APKBUILD
blob: 68c4fe591031c7d87d45adce511b04e6e2277f61 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      

                                                   
                   
           
        
                                                  
                                              
             
                          
                                                                                                                                    
                                                     

                                       
                              
                          
                                                                                 
 
                                    
 
           


                       
                                                               
                                                                 


         
                      
                                                               





                      


           

                                      


                                                                           
                                                                                                                                                                     
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-class-load
_pkgreal=Class-Load
pkgver=0.25
pkgrel=1
pkgdesc="A working (require Class::Name) and more"
url="https://metacpan.org/release/Class-Load/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-data-optlist perl-module-runtime perl-module-implementation perl-try-tiny perl-namespace-clean perl-package-stash"
cpanmakedepends="perl-test-fatal perl-test-requires "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="perl-test-needs"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_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="feacb4ae99358d3dc45b23b2d7cc814603e59a72424e7e0620d4939fa6d6206a1bb123c010b49013ce4764df11dc7c04fc1d7bd5783c61a391310bcb653e7ca4  Class-Load-0.25.tar.gz"