aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-type-tiny/APKBUILD
blob: 7ac7441c4fcc2ee6522192ba59d8002f4a1397ce (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-type-tiny
_pkgreal=Type-Tiny
pkgver=1.010002
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-exporter-tiny"
makedepends="perl-dev 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"

prepare() {
	default_prepare

	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

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

check() {
	make test
}

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

sha512sums="a5e040d22c3589708257ca9883f19660af3d31b423793ab8c55af2bf41bb167cca1bcc63d61d3a995ce93eaa4898ea21df645ccefe9a580b1145820e9ba9e358  Type-Tiny-1.010002.tar.gz"