aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-starlet/APKBUILD
blob: 673363228fa4446ac9ad1933dd8ebf1540e1ea86 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      



                                              
           
        
                                                           
                                           

                          


                                                                  

                                       
                                              
                                
                          
                                                                                  
                                    

           

                       
                      

                                                                     


         
                      
                                                                


            
           

                                      


                                                                           






                                                                                                                                                                  
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-starlet
_pkgreal=Starlet
pkgver=0.31
pkgrel=1
pkgdesc="a simple, high-performance PSGI/Plack HTTP server"
url="https://metacpan.org/release/Starlet/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-server-starter perl-plack perl-parallel-prefork"
cpanmakedepends="perl-libwww perl-test-tcp"
cpancheckdepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
options="!check" # missing HTTP::Headers::Fast
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/K/KA/KAZUHO/$_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 -I. Makefile.PL INSTALLDIRS=vendor
}

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

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

check() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

sha512sums="855451ee69e379230d2476144fe5b44d0fef115e654d22bd697b3d75cc30aa53c179201d3bf980cc044b48081f7d2cfd56a956e5747d0e93e4468fd511945b7b  Starlet-0.31.tar.gz"