aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-async-http/APKBUILD
blob: e0e43e1ad66754a48f3f5d9359041652b6f82ebe (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.35
pkgrel=1
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 perl-struct-dumb"
cpanmakedepends="perl-test-identity perl-http-cookies perl-io-async   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-test-refcount 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"
	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="772dcf2a8c5212f614aad070137f855d  Net-Async-HTTP-0.35.tar.gz"
sha256sums="022b9bb5aa9d6f8c6ede818dfa01be262fce723fb8bd496fb6851b6f3bddb3d3  Net-Async-HTTP-0.35.tar.gz"
sha512sums="dacd4794fc89617a9705afca03e86a35106c63e63f2dea59b0a3f0d57aa3e41aa8a77a7a4cd22c170aa3790535bb9025c2fc975acd1fd81cbf31ac3321c2dfe1  Net-Async-HTTP-0.35.tar.gz"