From c3bc48eec4e737e40ff3a531419df539489c3ee5 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 24 May 2016 16:28:28 +0200 Subject: perl-http-tiny-mech neu --- perl-http-tiny-mech/PKGBUILD | 75 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 perl-http-tiny-mech/PKGBUILD (limited to 'perl-http-tiny-mech') diff --git a/perl-http-tiny-mech/PKGBUILD b/perl-http-tiny-mech/PKGBUILD new file mode 100644 index 00000000..15343396 --- /dev/null +++ b/perl-http-tiny-mech/PKGBUILD @@ -0,0 +1,75 @@ +# Maintainer: Erich Eckner +# Generator : neuesPerlPaket (2234e1f408ad7a30313e9b3c153aadde5d1eb68bc0adcb75ee52d2927ebb42e5676317181b669be39442d556f1e0c24b108d6d45021c1dbc41e2f79c705c7ca7) + +pkgname='perl-http-tiny-mech' +pkgver='1.001001' +pkgrel='1' +pkgdesc='Wrap a WWW::Mechanize instance in an HTTP::Tiny compatible interface.' +arch=('x86_64' 'i686') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +provides=( + 'perl-http-tiny-mech') +depends=( + 'perl>=5.006' + 'perl-http-message' + 'perl-http-tiny>=0.022' + 'perl-parent' + 'perl-www-mechanize') +makedepends=( + 'perl-extutils-makemaker' + 'perl-http-message' + 'perl-http-tiny>=0.022' + 'perl-pathtools' + 'perl-test-simple>=0.89') +url='https://metacpan.org/release/HTTP-Tiny-Mech' +_distdir="HTTP-Tiny-Mech-${pkgver}" +source=("https://cpan.metacpan.org/authors/id/K/KE/KENTNL/${_distdir}.tar.gz") +sha512sums=('c933bf331a53853e218b3c9a2f5deeeae8e265706ddce920396dc3f3e29548b773f9ed5a319a0db3fcb5b8730d0ee651dbe89e39ca29c3d9052ff2a863360550') + +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 +} -- cgit v1.2.3-54-g00ecf