aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-io-async/APKBUILD
blob: e8727510aabd194bf6b6ba1f58b1c5b5978673e3 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-io-async
_pkgreal=IO-Async
pkgver=0.77
pkgrel=1
pkgdesc="Asynchronous event-driven programming"
url="https://metacpan.org/release/IO-Async"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl-struct-dumb perl-future"
makedepends="perl-dev perl-test-refcount perl-test-fatal perl-test-identity perl-module-build"
checkdepends="perl-test-metrics-any"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	default_prepare
	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="cdecd1efeae5f925df175a8045552c30d0d59c52aa806786c532e7b00de238829f4bae9afaec2f5c4d2a261074bdfe6d93cf271dde780370d4b5378a8582ed04  IO-Async-0.77.tar.gz"