aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-async-http/APKBUILD
blob: c28ca711fa3224282f094bceb0d5f3d0945a042c (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
37
38
39
40
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-net-async-http
_pkgreal=Net-Async-HTTP
pkgver=0.45
pkgrel=0
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"
cpandepends="perl-io-async perl-future perl-uri perl-http-message perl-struct-dumb"
cpanmakedepends="perl-test-identity perl-http-cookies"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-test-refcount perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Net-Async-HTTP-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

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

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

check() {
	./Build test
}

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

sha512sums="0d50716cf73b05a55c177eb7858acb002993bace6b1aafc02b18067e9fb5583c7ed5ff49bd611b10b5186e98b2de50016720f827cf7cff82918259fca57e6f9f  Net-Async-HTTP-0.45.tar.gz"