aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-io-async/APKBUILD
blob: b87b634e2f1e7e0abc7557e9f9e0d62479574f32 (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
40
# 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.61
pkgrel=0
pkgdesc="Asynchronous event-driven programming"
url="http://search.cpan.org/dist/IO-Async/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-future"
cpanmakedepends="perl-test-identity perl-test-fatal perl-test-refcount   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
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 || return 1
}

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

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

md5sums="14cbfa50027e0121a95a0f3e259b6d74  IO-Async-0.61.tar.gz"
sha256sums="4edfded76d6f98c8eb9fe33dbe782f2b52cde275249c3fb7bc37d5e24c48dd46  IO-Async-0.61.tar.gz"
sha512sums="f3b7c8ed47630ceeb9ca73cce42a6c0ca1bd332e32d7efaa5f71792f68680a339bdc933ceab61b2dbfd109a015ae2d0b928a2fc7e079d50f35cb3aaff8e3a85e  IO-Async-0.61.tar.gz"