aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-moox-types-mooselike/APKBUILD
blob: ad651e78108d2051bef4b97cb991abc957dc68f7 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      

                                                           

                                 
           
        
                                               
                                                        

                          

                                             


                                       
                                                                                 
 
                                    

           


                       




                                                                 
                      
                                                               





                      


           

                                      


                                                                           
                                                                                                                                                                               
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-moox-types-mooselike
_pkgreal=MooX-Types-MooseLike
pkgver=0.29
pkgrel=3
pkgdesc="Some Moosish types and a type builder"
url="https://metacpan.org/release/MooX-Types-MooseLike/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-module-runtime"
cpanmakedepends="perl-moo perl-test-fatal   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MA/MATEU/$_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="69ddd0d663d1ea23dfc7e47ec35192f1951f195f70f788bac47cc93e98d9e888394c07fc39f1740b7c1fd04f8724f2b0dfa14183fe33bceb9f77c1f1d1b8752e  MooX-Types-MooseLike-0.29.tar.gz"