aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-io-async/APKBUILD
blob: c1b427f646b601a70f1061f106a86b1ebcc578a5 (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
# 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.75
pkgrel=0
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"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"

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

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="a8ae2d38ee4f7847ae80aeccb3553b978ff274d8a53dc1c9a17e21c7af43695293a98b2ef04190d51abb8e9cce15fbc6e175823c91ac48ab837ac0e71bed3bdc  IO-Async-0.75.tar.gz"