summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 04:45:07 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 04:45:07 -0500
commiteefca2557f5ab517f3c064299a0710d482e6c6cf (patch)
tree400c8fb42c1ae448ef82aaee5d21f3d1b1d9a321
parent90d7d13ec1f02e0f2147d5027f5738e5d9ef14b1 (diff)
downloadpackages-eefca2557f5ab517f3c064299a0710d482e6c6cf.tar.gz
packages-eefca2557f5ab517f3c064299a0710d482e6c6cf.tar.bz2
packages-eefca2557f5ab517f3c064299a0710d482e6c6cf.tar.xz
packages-eefca2557f5ab517f3c064299a0710d482e6c6cf.zip
system/perl-http-message: add for lwp
-rw-r--r--system/perl-http-message/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/system/perl-http-message/APKBUILD b/system/perl-http-message/APKBUILD
new file mode 100644
index 000000000..d5b178f38
--- /dev/null
+++ b/system/perl-http-message/APKBUILD
@@ -0,0 +1,45 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-http-message
+_pkgreal=HTTP-Message
+pkgver=6.18
+pkgrel=0
+pkgdesc="Perl class encapsulating HTTP-style messages"
+url="http://search.cpan.org/dist/HTTP-Message/"
+arch="noarch"
+license="GPL-2.0-only OR Artistic-1.0-Perl"
+cpandepends="perl-lwp-mediatypes perl-encode-locale perl-http-date perl-uri perl-io-html"
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="perl-try-tiny"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/O/OA/OALDERS/$_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
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="46a5d4ee6af1bdb7b320ae8ad430b4dbff9a198a60d025703fa64a83284dfe6bee08041fc43372b6ea724ab973f84c3cbca5353d6158bdfbbed612577de61206 HTTP-Message-6.18.tar.gz"