# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Francesco Colista pkgname=perl-http-server-simple _pkgreal=HTTP-Server-Simple pkgver=0.52 pkgrel=3 pkgdesc="Lightweight HTTP server" url="https://metacpan.org/pod/HTTP::Server::Simple" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" checkdepends="perl-test-pod perl-test-pod-coverage" depends="perl perl-cgi" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/B/BP/BPS/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" 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="57c0aa4ceb7e0f430f577e24c275d96d54ceb15ddf6e53710067f57dac50e8a57661399d0093edf28c1ff7b6ed313471cded48f5792349191b8d60d8d7cde2d1 HTTP-Server-Simple-0.52.tar.gz"