summaryrefslogtreecommitdiff
path: root/user/perl-http-headers-fast/APKBUILD
blob: 6392aa00d7c2d60c0bdf1acae6fc32873e3c1b31 (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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-http-headers-fast
_pkgreal=HTTP-Headers-Fast
_author=TOKUHIROM
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.22
pkgrel=0
pkgdesc="Fast HTTP header parsing for Perl"
url="https://metacpan.org/release/HTTP-Headers-Fast"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl perl-http-date"
checkdepends="perl-test-requires perl-uri"
makedepends="perl-dev perl-module-build-tiny"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	perl Build.PL --destdir="$pkgdir" --prefix="/usr" --installdirs=vendor
	./Build
}

check() {
	./Build test
}

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

sha512sums="60435c11b5846c1a6256227c7edb00fd444c76346797424f186f971c5bebec93b1c84be805e0a4589c92b8c571d0c3e0332436b21ad099677a31544305d819b2  HTTP-Headers-Fast-0.22.tar.gz"