aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-io-async/APKBUILD
blob: 53be9db386e09c71cfb899d73828d477019b8db1 (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
# 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.74
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"
cpandepends="perl-struct-dumb perl-future"
cpanmakedepends="perl-test-refcount perl-test-fatal perl-test-identity"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$builddir"
	perl Build.PL installdirs=vendor
}

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

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

sha512sums="99a2e7385259cbe645443c7dfdf4e9ba083f8ee3db7fa806d6576c21403c96641612c77f814dc0d7727a4391c8a375ec1ae026c955c1b34a3e172ffd7e9602b9  IO-Async-0.74.tar.gz"