aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-furl/APKBUILD
blob: 011e7a2dd2ac19498105ac7a8f1b3dd04574bd02 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-furl
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Furl
pkgver=3.13
pkgrel=0
pkgdesc="Lightning-fast URL fetcher"
url="https://metacpan.org/release/Furl/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-http-parser-xs perl-class-accessor-lite perl-mozilla-ca"
makedepends="perl-dev perl-module-build-tiny perl-module-build"
checkdepends="perl-http-body perl-http-cookiejar perl-plack
	perl-starlet perl-test-tcp perl-test-requires"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TO/TOKUHIROM/Furl-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

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

sha512sums="9209f8953274e83687526c18131077b2f5fc39ea85240dfa8ba8263ca2f31c3b0c274de87e8c94833ec110c128154ed7b732646cfb13cc0ccc753764e2fcc548  Furl-3.13.tar.gz"