[arch-commits] Commit in perl-log-log4perl/trunk (PKGBUILD)

Justin Davis juster at archlinux.org
Tue May 15 17:13:50 UTC 2012


    Date: Tuesday, May 15, 2012 @ 13:13:50
  Author: juster
Revision: 159102

upgpkg: perl-log-log4perl 1.36-1

Modified:
  perl-log-log4perl/trunk/PKGBUILD

----------+
 PKGBUILD |   61 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 29 insertions(+), 32 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-05-15 16:40:38 UTC (rev 159101)
+++ PKGBUILD	2012-05-15 17:13:50 UTC (rev 159102)
@@ -1,47 +1,44 @@
-# Packager: Justin Davis <jrcd83 at gmail.com>
+# Packager: Justin Davis (juster) <jrcd83 at gmail.com>
 # $Id$
 
 pkgname=perl-log-log4perl
-pkgver=1.35
+pkgver=1.36
 pkgrel=1
-pkgdesc="Log4j implementation for Perl"
+pkgdesc='Log4j implementation for Perl'
 arch=(any)
 license=(PerlArtistic GPL)
 options=(!emptydirs)
-depends=('perl-pathtools')
-checkdepends=('perl-test-simple')
+depends=(perl)
 url=https://metacpan.org/release/Log-Log4perl
-source=("http://search.cpan.org/CPAN/authors/id/M/MS/MSCHILLI/Log-Log4perl-${pkgver}.tar.gz")
-md5sums=(bf5d124ee119052525cae1df2f2442be)
-sha512sums=(375deac5aee6a55ba00a32173644bb67edf65dcc46a45ca6311f04f8ab07599d543e110e0ec7b1db1f70b117e3465f97a4a0b6a86ee28a7cda59d41167fc90f5)
-_distdir="${srcdir}/Log-Log4perl-${pkgver}"
+source=("http://search.cpan.org/CPAN/authors/id/M/MS/MSCHILLI/Log-Log4perl-$pkgver.tar.gz")
+md5sums=(ae6a51735b0b0e6661d2e66d30d91fa5)
+sha512sums=(ac940b5de1ed3d04a3dfa06625c7311f31b0439786fe49fe56fe31a1bfbe78be378240a71fd79bd766e23600798621742f0572ddf1bb6bde7623832030e9ed3c)
+_dir="$srcdir/Log-Log4perl-$pkgver"
 
-build() {
-  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
-      PERL_AUTOINSTALL=--skipdeps                            \
-      PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
-      PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
-      MODULEBUILDRC=/dev/null
+build()
+(
+  cd "$_dir"
+  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
+  unset PERL5LIB PERL_MM_OPT
+  /usr/bin/perl Makefile.PL
+  make
+)
 
-    cd "$_distdir"
-    /usr/bin/perl Makefile.PL
-    make
-  )
-}
+check()
+(
+  cd "$_dir"
+  export PERL_MM_USE_DEFAULT=1
+  unset PERL5LIB
+  make test
+)
 
-check() {
-  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
-    cd "$_distdir"
-    make test
-  )
-}
+package()
+(
+  cd "$_dir"
+  make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
+  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+)
 
-package() {
-    cd "$_distdir"
-    make DESTDIR="$pkgdir" install
-    find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
-}
-
 # Local Variables:
 # mode: shell-script
 # sh-basic-offset: 2




More information about the arch-commits mailing list