summaryrefslogtreecommitdiff
path: root/perl-lwp-protocol-http10
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-12 13:37:57 +0200
committerErich Eckner <git@eckner.net>2017-09-12 13:37:57 +0200
commitfcd87e7deb8eea9aa076a5a4991bae26e4f0190e (patch)
tree4e815312b442a3b9d7aecf68db3f906378852f6f /perl-lwp-protocol-http10
parent583d3ef2c52a9e02a08745f329c66206e6aa2f46 (diff)
downloadarchlinuxewe.git.save-fcd87e7deb8eea9aa076a5a4991bae26e4f0190e.tar.xz
perl-lwp-protocol-http10 neu
Diffstat (limited to 'perl-lwp-protocol-http10')
-rw-r--r--perl-lwp-protocol-http10/PKGBUILD69
1 files changed, 69 insertions, 0 deletions
diff --git a/perl-lwp-protocol-http10/PKGBUILD b/perl-lwp-protocol-http10/PKGBUILD
new file mode 100644
index 00000000..d9f23df6
--- /dev/null
+++ b/perl-lwp-protocol-http10/PKGBUILD
@@ -0,0 +1,69 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (692fa86d14f9e2571a00e5a14233b1d8db463b07a9dbd77ff468b4cc8851ed51bc9a5e8f45a2e84cbc02fa7986fd2b2955274bbcd951b2d455ea37c6b4d7d11c)
+
+pkgname='perl-lwp-protocol-http10'
+pkgver='6.03'
+pkgrel='1'
+pkgdesc='Legacy HTTP/1.0 support for LWP'
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl>=5.8.1'
+ 'perl-http-message>=6'
+ 'perl-io'
+)
+makedepends=(
+ 'perl-extutils-makemaker'
+)
+url='https://metacpan.org/release/LWP-Protocol-http10'
+_distdir="LWP-Protocol-http10-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/G/GA/GAAS/${_distdir}.tar.gz")
+sha512sums=('50d146acad2cbfbd28cf7d0646485788574f217b216e35eb14c1cefd811fabe72237080f80b7900a06c7f1169ce8c07b87b6472143b5c27b59e3c55884b55153')
+
+build() {
+ cd "${srcdir}/${_distdir}"
+
+ # Setting these env variables overwrites any command-line-options we don't want...
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
+ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='${pkgdir}'" \
+ PERL_MB_OPT="--installdirs vendor --destdir '${pkgdir}'" \
+ MODULEBUILDRC=/dev/null
+
+ # If using Makefile.PL
+ if [ -r Makefile.PL ]; then
+ perl Makefile.PL
+ make
+ # If using Build.PL
+ elif [ -r Build.PL ]; then
+ perl Build.PL
+ perl Build
+ fi
+}
+
+check() {
+ cd "${srcdir}/${_distdir}"
+
+ # If using Makefile.PL
+ if [ -r Makefile.PL ]; then
+ make test
+ # If using Build.PL
+ elif [ -r Build.PL ]; then
+ perl Build test
+ fi
+}
+
+package() {
+ cd "${srcdir}/${_distdir}"
+
+ # If using Makefile.PL
+ if [ -r Makefile.PL ]; then
+ make install
+ # If using Build.PL
+ elif [ -r Build.PL ]; then
+ perl Build install
+ fi
+
+ # remove perllocal.pod and .packlist
+ find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete
+}