blob: 2c17fb56e3ffffac81e5998be7be7a70b6c2c1f5 (
plain)
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
|
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Nick Andrew <nick@nick-andrew.net>
# Maintainer: Nick Andrew <nick@nick-andrew.net>
pkgname=perl-anyevent-influxdb
_pkgreal=AnyEvent-InfluxDB
pkgver=1.0.2.0
pkgrel=3
pkgdesc="An asynchronous library for InfluxDB time-series database"
url="https://metacpan.org/release/AnyEvent-InfluxDB"
arch="" # blocking on perl-www-curl
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-anyevent-http perl-anyevent perl-list-moreutils perl-moo
perl-json perl-uri perl-uri-encode-xs"
cpanmakedepends="perl-module-build"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/A/AJ/AJGB/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
perl Build.PL installdirs=vendor
}
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
./Build && ./Build test
}
package() {
./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="1b88aa659fae9f7089547f9765048368811af26a0d090ead61a862dd00ebe175e9a2ea458dae39590268b0bb77913b630fb13e07fe3bccaff002bb5da6bc2c42 AnyEvent-InfluxDB-1.0.2.0.tar.gz"
|