aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-type-tiny/APKBUILD
blob: 3cdfe5eccee9b439bccc3a6d27fcce3307eb59c5 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      


                                                           
                                                              
                  
               
        
                                                      
                                             
             
                                               
                                 
                                 
                          
                                                                                   

                                    
         
                                                                
                                                                     



            
                                                                
                 


           
                                      


                                                                           
            
                                                                                                                                                           
 
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-type-tiny
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Type-Tiny
pkgver=1.012004
pkgrel=0
pkgdesc="tiny, yet Moo(se)-compatible type constraint"
url="https://metacpan.org/release/Type-Tiny/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-exporter-tiny"
checkdepends="perl-test-warnings"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/Type-Tiny-$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="
26b861f1e9caad5717f14eb0a6c71010f0306b614292fdc5ee95041ebdd2035ac6cfd4a6a186943479de630f3ff143914671111f5cec86bc4c08842cec30d2af  Type-Tiny-1.012004.tar.gz
"