aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-class-methodmaker/APKBUILD
blob: a13bd18515e11675a690cc57eac04477660c2a2d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                      
                                                           
                                                          
                              

                                                              
           
        

                                                     
          


                                               
                          
                                                                                                              
                                    

         

                                                                     



            
                                                                
                 


           
                                      


                                                                           
                                                                                                                                                                            
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-class-methodmaker
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Class-MethodMaker
pkgver=2.24
pkgrel=7
pkgdesc="A module for creating generic methods"
url="https://metacpan.org/release/Class-MethodMaker/"
arch="all"
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/S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-$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="d78f89df41d5c566dee74d30ff1b71488e9510639e795dd2f21e95e0516b039d15dd6743342cb28841e0fc698f64b3b3f349b5da788220598dff6ad95225ae0c  Class-MethodMaker-2.24.tar.gz"