summaryrefslogblamecommitdiff
path: root/user/perl-http-headers-fast/APKBUILD
blob: ec547543efae3c81be2d2b39b6e8cae7b7b23e91 (plain) (tree)
1
2
3
4
5



                                                                   
           




























                                                                                             
                                                                                                                                                                            
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-http-headers-fast
_pkgname=HTTP-Headers-Fast
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-2.0-only"
depends="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/T/TO/TOKUHIROM/HTTP-Headers-Fast-$pkgver.tar.gz"
builddir="$srcdir/HTTP-Headers-Fast-$pkgver"

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

check() {
	cd "$builddir"
	./Build test
}

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

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