aboutsummaryrefslogblamecommitdiffstats
path: root/testing/perl-starman/APKBUILD
blob: e9e3ef412a790eadf16a90e3474f8d16403c5c19 (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-starman
_pkgreal=Starman
pkgver=0.4015
pkgrel=1
pkgdesc="High-performance preforking PSGI/Plack web server"
url="https://metacpan.org/release/Starman"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="
	perl perl-http-message perl-data-dump perl-http-parser-xs perl-test-tcp perl-net-server
	perl-http-date perl-plack
	"
makedepends="perl-module-build-tiny"
checkdepends="perl-libwww perl-test-requires"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/Starman-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL installdirs=vendor
}

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

package() {
	./Build install --destdir="$pkgdir" --prefix=/usr --installdirs=vendor
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

check() {
	./Build test
}

sha512sums="8e603dfc27ee54b577c24bd521da08ecb56ae2b6992ad2304156a23b917465b3a14d11e1f038ca809ff6359798e03d3ce6d6aa705e55637401d8391ec5086ade  Starman-0.4015.tar.gz"