aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-mojolicious/APKBUILD
blob: 60015367ac45d7142ee9a42ac72e562a32ea2965 (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-mojolicious
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Mojolicious
pkgver=9.25
pkgrel=0
pkgdesc="Real-time web framework"
url="https://metacpan.org/release/Mojolicious/"
arch="noarch"
license="Artistic-2.0"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SR/SRI/Mojolicious-$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="
de52c16aaaa3a7b9b05781049e281222fb04a4b240c6ec8151ec66082dcfd6c6655466a68597be581ed5507d9ac7be8532cf0672318713de2d1cc55131358116  Mojolicious-9.25.tar.gz
"