summaryrefslogtreecommitdiff
path: root/system/perl-http-daemon/APKBUILD
blob: c4c86414d27d19bcd2e12435d3888fac159930e7 (plain) (blame)
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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-http-daemon
pkgver=6.05
_author=E
_author2=${_author}T
_author3=${_author2}HER
pkgrel=0
pkgdesc="HTTP::Daemon perl module"
url="https://metacpan.org/release/HTTP-Daemon"
arch="noarch"
license="GPL-2.0-only or Artistic-1.0-Perl"
depends="perl perl-http-date perl-http-message"
checkdepends="perl-test-needs"
makedepends="perl-dev perl-module-build"
replaces="perl-libwww"
subpackages="$pkgname-doc"
source="https://search.cpan.org/CPAN/authors/id/$_author/$_author2/$_author3/HTTP-Daemon-$pkgver.tar.gz"
builddir="$srcdir"/HTTP-Daemon-$pkgver

build() {
	# use Module::Build for non-/usr/local, not Module::Build::Tiny.
	PERL_MB_FALLBACK_SILENCE_WARNING=1 perl Build.PL installdirs=vendor
	./Build
}

check() {
	./Build test
}

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

sha512sums="26a5dd4f215b7d3c488c414101e975db0b8f38f11c983312d3c1d89f22e9c80895d6ae3f60fd4b00b6cbea5814992ad705237848cf2c9eab40eb82cd0109b32d  HTTP-Daemon-6.05.tar.gz"