aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-mojolicious/APKBUILD
blob: fb826c542ec0f0126052b495928546cdeb87a2af (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-mojolicious
_pkgreal=Mojolicious
pkgver=8.50
pkgrel=0
pkgdesc="Real-time web framework"
url="https://metacpan.org/release/Mojolicious"
arch="noarch"
license="Artistic-2.0"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SR/SRI/Mojolicious-$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="29864baefb9c7786c77e371c6e29a8f811e434815c07ea265804431cbe37ed8bfcbb7b8bd6a0cfd45ae5aca8e53225121d9f30cd46cac1e6e87ae042d791c6b5  Mojolicious-8.50.tar.gz"