diff options
author | Nick Andrew <nick@nick-andrew.net> | 2016-08-13 14:56:11 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-08-15 18:20:47 +0000 |
commit | f0e5d73ade570da1b18098fb4129798e79a2b83c (patch) | |
tree | 66bdb90d3f8b7b51611163f98f25538f9475f339 /testing | |
parent | 07aee356fa104b5a10790b9554b0ec6713801933 (diff) | |
download | aports-f0e5d73ade570da1b18098fb4129798e79a2b83c.tar.bz2 aports-f0e5d73ade570da1b18098fb4129798e79a2b83c.tar.xz |
testing/perl-anyevent-http: new aport
http://search.cpan.org/~mlehmann/AnyEvent-HTTP-2.22
Simple but non-blocking HTTP/HTTPS client
Diffstat (limited to 'testing')
-rw-r--r-- | testing/perl-anyevent-http/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-anyevent-http/APKBUILD b/testing/perl-anyevent-http/APKBUILD new file mode 100644 index 0000000000..00e53d7b6e --- /dev/null +++ b/testing/perl-anyevent-http/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Nick Andrew <nick@nick-andrew.net> +# Maintainer: Nick Andrew <nick@nick-andrew.net> +pkgname=perl-anyevent-http +_pkgreal=AnyEvent-HTTP +pkgver=2.22 +pkgrel=0 +pkgdesc="unknown" +url="http://search.cpan.org/dist/AnyEvent-HTTP/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-dancer-plugin-swig perl-anyevent" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="e27736c4592031adccfa0638419a3b70 AnyEvent-HTTP-2.22.tar.gz" +sha256sums="864544a4f35b3f14b59f42a26d338d98cfe8fae726eb3578dcf36eed0df5aa6e AnyEvent-HTTP-2.22.tar.gz" +sha512sums="3408b5339cc85e8d37dc6c4f40a0f1ad9436fb9b261e6a14b5a7913f8ee6c2ba7e80aec376af48190c76219fbcadf9c68c2d67c4ab60c77044093f6ec70f4aac AnyEvent-HTTP-2.22.tar.gz" |