# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-starlet _pkgreal=Starlet pkgver=0.31 pkgrel=3 pkgdesc="a simple, high-performance PSGI/Plack HTTP server" url="https://metacpan.org/release/Starlet/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-server-starter perl-plack perl-parallel-prefork" makedepends="perl-libwww perl-test-tcp" options="!check" # missing HTTP::Headers::Fast subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/K/KA/KAZUHO/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { default_prepare export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor } build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } sha512sums="855451ee69e379230d2476144fe5b44d0fef115e654d22bd697b3d75cc30aa53c179201d3bf980cc044b48081f7d2cfd56a956e5747d0e93e4468fd511945b7b Starlet-0.31.tar.gz"