aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-io-async/APKBUILD
blob: a63654ec37cf82a7fd7d7a4d65c45d31a866d080 (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.64
pkgrel=0
pkgdesc="Asynchronous event-driven programming"
url="http://search.cpan.org/dist/IO-Async/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-struct-dumb perl-future"
cpanmakedepends="perl-test-refcount perl-test-fatal perl-test-identity   "
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="52a52cd31d70bbd7d9a2e3dfc18d3853  IO-Async-0.64.tar.gz"
sha256sums="d7eb7d20e5aea739bcb4c2a4b439ab929c1c84036d3e84ed5befdb2d863d7523  IO-Async-0.64.tar.gz"
sha512sums="ebd96fcdd045ea974823427a8010384d97c52fd74be183cd17675cd05c0e232f8f66b160d6874365414357cc34a083bbd3a481cffed6d8b4626306825b0ba3ea  IO-Async-0.64.tar.gz"