[arch-commits] Commit in perl-sub-exporter-progressive/trunk (PKGBUILD)

Jonathan Steel jsteel at nymeria.archlinux.org
Fri Aug 9 21:08:55 UTC 2013


    Date: Friday, August 9, 2013 @ 23:08:55
  Author: jsteel
Revision: 95334

Remove reference to $pkgdir in build function

Modified:
  perl-sub-exporter-progressive/trunk/PKGBUILD

----------+
 PKGBUILD |   50 ++++++++++++--------------------------------------
 1 file changed, 12 insertions(+), 38 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-08-09 20:48:43 UTC (rev 95333)
+++ PKGBUILD	2013-08-09 21:08:55 UTC (rev 95334)
@@ -1,6 +1,5 @@
 # $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Maintainer: jsteel <mail at jsteel dot org>
+# Maintainer: Jonathan Steel <jsteel at aur.archlinux.org>
 # Contributor: Alan Young <harleypig at gmail.com>
 
 pkgname='perl-sub-exporter-progressive'
@@ -12,60 +11,35 @@
 url='http://search.cpan.org/dist/Sub-Exporter-Progressive'
 license=('PerlArtistic' 'GPL')
 options=('!emptydirs')
-source=("http://search.cpan.org/CPAN/authors/id/F/FR/FREW/$_pkgname-$pkgver.tar.gz")
+source=(http://search.cpan.org/CPAN/authors/id/F/FR/FREW/$_pkgname-$pkgver.tar.gz)
 md5sums=('0350d9e12549112ae1f618cbff3ecbd9')
 
 build() {
-  export MODULEBUILDRC=/dev/null \
-         PERL5LIB="" \
-         PERL_AUTOINSTALL=--skipdeps \
-         PERL_MB_OPT="--installdirs vendor --destdir \"$pkgdir\"" \
-         PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR=\"$pkgdir\"" \
-         PERL_MM_USE_DEFAULT=1
+  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
+      PERL_AUTOINSTALL=--skipdeps                            \
+      PERL_MM_OPT="INSTALLDIRS=vendor"                       \
+      PERL_MB_OPT="--installdirs vendor"                     \
+      MODULEBUILDRC=/dev/null
 
-  cd "$srcdir"/$_pkgname-$pkgver
+    cd "$srcdir"/$_pkgname-$pkgver
 
-  if [[ -e ./Build.PL ]]; then
-    /usr/bin/perl Build.PL
-    ./Build
-  elif [[ -e ./Makefile.PL ]]; then
     /usr/bin/perl Makefile.PL
     make
-  fi
+  )
 }
 
 check() {
-  export MODULEBUILDRC=/dev/null \
-         PERL5LIB="" \
-         PERL_AUTOINSTALL=--skipdeps \
-         PERL_MB_OPT="--installdirs vendor --destdir \"$pkgdir\"" \
-         PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR=\"$pkgdir\"" \
-         PERL_MM_USE_DEFAULT=1
-
   cd "$srcdir"/$_pkgname-$pkgver
 
-  if [[ -e ./Build.PL ]]; then
-    ./Build test
-  elif [[ -e ./Makefile.PL ]]; then
+  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
     make test
-  fi
+  )
 }
 
 package() {
-  export MODULEBUILDRC=/dev/null \
-         PERL5LIB="" \
-         PERL_AUTOINSTALL=--skipdeps \
-         PERL_MB_OPT="--installdirs vendor --destdir \"$pkgdir\"" \
-         PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR=\"$pkgdir\"" \
-         PERL_MM_USE_DEFAULT=1
-
   cd "$srcdir"/$_pkgname-$pkgver
 
-  if [[ -e ./Build.PL ]]; then
-    ./Build install
-  elif [[ -e ./Makefile.PL ]]; then
-    make install
-  fi
+  make DESTDIR="$pkgdir"/ install
 
   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
 }




More information about the arch-commits mailing list