summaryrefslogtreecommitdiff
path: root/system/perl-http-message/APKBUILD
blob: 2f02752ffa9a07809db018f7efc42dea195ee1c2 (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: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-http-message
_pkgreal=HTTP-Message
_author=OALDERS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=6.44
pkgrel=0
pkgdesc="Perl class encapsulating HTTP-style messages"
url="https://metacpan.org/release/HTTP-Message"
arch="noarch"
license="GPL-2.0-only OR Artistic-1.0-Perl"
depends="perl perl-clone perl-lwp-mediatypes perl-encode-locale perl-http-date
	perl-uri perl-io-html"
makedepends=""
checkdepends="perl-test-needs perl-try-tiny"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

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

sha512sums="515f3b91b4ed1b12c63149006651b8d60e3b4d3d842e2b997b2e8c67ce93cbdcb8eb5357f4c5bce20057aea22c1f84b5e02995b02e381c21d918032edb35a994  HTTP-Message-6.44.tar.gz"