aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-async-http/APKBUILD
blob: b0986144814645704dbda44a8ddfd69e01e7d9bc (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-net-async-http
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Net-Async-HTTP
pkgver=0.47
pkgrel=1
pkgdesc="use HTTP with C<IO::Async>"
url="https://metacpan.org/release/Net-Async-HTTP/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-io-async perl-future perl-uri perl-http-message perl-struct-dumb perl-metrics-any"
makedepends="perl-dev perl-test-identity perl-http-cookies perl-test-refcount perl-module-build perl-io-async perl-test-metrics-any"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Net-Async-HTTP-$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="9a4cc1ff8a7b945763b5201244957ef009981e1525e20b8a589eb3540e17362cf3c8b6cd17e0fddb67fd401d42affd593bc34d041895cfb34c3b53c33abb148d  Net-Async-HTTP-0.47.tar.gz"