aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-http-server-simple/APKBUILD
blob: 3c046a2b06febfee577c95ac51c2f08ed54137d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-http-server-simple
_pkgreal=HTTP-Server-Simple
pkgver=0.52
pkgrel=1
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-cgi"
makedepends="perl-dev"
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"