diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-05-30 18:47:31 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-05-30 18:47:31 (GMT) |
commit | 153bea838df73e08621c6b6e6a4b3d287e9fe81a (patch) | |
tree | 1dab5e44668e161d1087e1c9efbce4367b6c2d24 /abs | |
parent | 79ce9d7801b8bcf92eaee741fa477397d1d6e7d5 (diff) | |
download | linhes_pkgbuild-153bea838df73e08621c6b6e6a4b3d287e9fe81a.zip linhes_pkgbuild-153bea838df73e08621c6b6e6a4b3d287e9fe81a.tar.gz linhes_pkgbuild-153bea838df73e08621c6b6e6a4b3d287e9fe81a.tar.bz2 |
perl-config-simple: rebuild
Diffstat (limited to 'abs')
-rw-r--r-- | abs/core/perl_modules/perl-config-simple/PKGBUILD | 48 |
1 files 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 <knoppmyth@gmail.com +# Maintainer: Florian Pritz <bluewind@xinu.at> 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 +} + |