aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-async-http/APKBUILD
blob: 4b646c500f81ce8b1076c39164a5a8b5edaa670c (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
41
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-net-async-http
_pkgreal=Net-Async-HTTP
pkgver=0.29
pkgrel=0
pkgdesc="use HTTP with C<IO::Async>"
url="http://search.cpan.org/dist/Net-Async-HTTP/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-io-async perl-future perl-uri perl-http-message"
cpanmakedepends="perl-test-identity perl-http-cookies perl-io-async   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-test-refcount"
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"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	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="bbfaea53702b34f6be801b66981f52e1  Net-Async-HTTP-0.29.tar.gz"
sha256sums="39a54d18609186a2e93014ebed220f169d549405ce63398096bfb1fb0853a384  Net-Async-HTTP-0.29.tar.gz"
sha512sums="b1fe5703fef5850ae625e47a1a7a1155e839c6b961ea9658636a1d7c8f12033c63f0c4b0c791c5b8255c7048fd8faa4cd16cd8eb6240369b0aa1c8975294f6d5  Net-Async-HTTP-0.29.tar.gz"