[arch-commits] Commit in perl-class-inspector/trunk (PKGBUILD)

Justin Davis juster at archlinux.org
Fri Oct 7 22:20:04 UTC 2011


    Date: Friday, October 7, 2011 @ 18:20:04
  Author: juster
Revision: 140149

upgpkg: perl-class-inspector 1.25-1
Update to version 1.25. New PKGBUILD.

Modified:
  perl-class-inspector/trunk/PKGBUILD	(contents, properties)

----------+
 PKGBUILD |   59 +++++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 37 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-10-07 22:11:09 UTC (rev 140148)
+++ PKGBUILD	2011-10-07 22:20:04 UTC (rev 140149)
@@ -1,33 +1,48 @@
-#$Id:$
+# Maintainer: Justin "juster" Davis <jrcd83 at gmail.com>
+# $Id$
+
 pkgname=perl-class-inspector
-_realname=Class-Inspector
-pkgver=1.24
-pkgrel=2
-pkgdesc="'Get information about a class and its structure'"
+pkgver=1.25
+pkgrel=1
+pkgdesc="Get information about a class and its structure"
 arch=(any)
-license=('GPL' 'PerlArtistic')
-url="http://search.cpan.org/~adamk/Class-Inspector"
+license=(PerlArtistic GPL)
 options=(!emptydirs)
-depends=('perl>=5.10.1')
-provides=('class-inspector=1.24' 'Class::Inspector=1.24' 'perl-class-inspector=1.24' 'Class::Inspector::Functions=1.24' 'perl-class-inspector-functions=1.24')
-source=(http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Class-Inspector-1.24.tar.gz)
-md5sums=('609189b49f64d329a6e413e0a6d8724a')
+depends=('perl>=5.6.0')
+url=http://search.cpan.org/dist/Class-Inspector
+source=('http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Class-Inspector-1.25.tar.gz')
+md5sums=(5830bff10a0966993edd14435b8a579b)
+sha512sums=(026af5d99e0e5d8192577a6ea36214158280bceb89ca02e27a0a9609906802fcf871a021fceb762c056cad428dbcaac29305c288619692136cbf90c3a64ce560)
+_distdir="${srcdir}/Class-Inspector-${pkgver}"
 
 build() {
-  cd "${srcdir}/${_realname}-${pkgver}"
-  # install module in vendor directories.
-  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
-  make
-  make test
+  ( 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
+
+    cd "$_distdir"
+    /usr/bin/perl Makefile.PL
+    make
+  )
 }
 
+check() {
+  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+    cd "$_distdir"
+    make test
+  )
+}
+
 package() {
-  cd "${srcdir}/${_realname}-${pkgver}"
-  make install DESTDIR=${pkgdir}
-  # remove perllocal.pod and .packlist
-  find ${pkgdir} -name perllocal.pod -delete
-  find ${pkgdir} -name .packlist -delete
+    cd "$_distdir"
+    make DESTDIR="$pkgdir" install
+    find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
 }
 
+# Local Variables:
+# mode: shell-script
+# sh-basic-offset: 2
+# End:
 # vim:set ts=2 sw=2 et:
-


Property changes on: perl-class-inspector/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
   + Id




More information about the arch-commits mailing list