From 153bea838df73e08621c6b6e6a4b3d287e9fe81a Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 30 May 2018 18:47:31 +0000 Subject: perl-config-simple: rebuild --- abs/core/perl_modules/perl-config-simple/PKGBUILD | 48 +++++++++++++++-------- 1 file changed, 31 insertions(+), 17 deletions(-) diff --git a/abs/core/perl_modules/perl-config-simple/PKGBUILD b/abs/core/perl_modules/perl-config-simple/PKGBUILD index a566dbc..d71a9f6 100644 --- a/abs/core/perl_modules/perl-config-simple/PKGBUILD +++ b/abs/core/perl_modules/perl-config-simple/PKGBUILD @@ -1,25 +1,39 @@ -# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ -# Maintainer: Cecil H. Watson pkgname=perl-config-simple -_realname=Config-Simple pkgver=4.59 -pkgrel=1 -pkgdesc="Simple configuration file class for perl" -arch=(i686 x86_64) -license=('PerlArtistic') -url="http://search.cpan.org/dist/${_realname}/" -depends=('perlxml' 'perl>=5.10.0') -options=('!emptydirs') -source=(ftp://ftp.cpan.org/pub/CPAN/authors/id/S/SH/SHERZODR/${_realname}-${pkgver}.tar.gz) +pkgrel=8 +pkgdesc="Simple configuration file class to create and read config files" +arch=(any) +license=(PerlArtistic GPL) +options=(!emptydirs) +depends=('perl') +url="http://search.cpan.org/~sherzodr/Config-Simple" +source=("http://search.cpan.org/CPAN/authors/id/S/SH/SHERZODR/Config-Simple-${pkgver}.tar.gz") md5sums=('96513b61c7db591339ce2577878a3b32') build() { - cd ${startdir}/src/${_realname}-${pkgver} - perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 - make DESTDIR=${startdir}/pkg install || return 1 + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor" \ + PERL_MB_OPT="--installdirs vendor" \ + MODULEBUILDRC=/dev/null - find ${startdir}/pkg -name '.packlist' -delete - find ${startdir}/pkg -name 'perllocal.pod' -delete + cd "${srcdir}/Config-Simple-${pkgver}" + /usr/bin/perl Makefile.PL + make } + +check() { + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + cd "${srcdir}/Config-Simple-${pkgver}" + make test +} + +package() { + cd "$_distdir" + cd "${srcdir}/Config-Simple-${pkgver}" + make DESTDIR="$pkgdir" install + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} + -- cgit v0.12