[arch-commits] Commit in perl-www-robotrules/trunk (PKGBUILD)

Eric Bélanger eric at nymeria.archlinux.org
Sun Sep 29 18:58:29 UTC 2013


    Date: Sunday, September 29, 2013 @ 20:58:28
  Author: eric
Revision: 195273

upgpkg: perl-www-robotrules 6.02-2

Clean up PKGBUILD

Modified:
  perl-www-robotrules/trunk/PKGBUILD

----------+
 PKGBUILD |   60 +++++++++++++++++++++---------------------------------------
 1 file changed, 21 insertions(+), 39 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-09-29 18:50:44 UTC (rev 195272)
+++ PKGBUILD	2013-09-29 18:58:28 UTC (rev 195273)
@@ -1,48 +1,30 @@
-# Packager: Justin "juster" Davis <jrcd83 at gmail.com>
 # $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
 
 pkgname=perl-www-robotrules
 pkgver=6.02
-pkgrel=1
-pkgdesc="database of robots.txt-derived permissions"
-arch=(any)
-license=(PerlArtistic GPL)
-options=(!emptydirs)
-depends=('perl>=5.8.1' 'perl-uri>=1.10')
-conflicts=('perl-libwww<6')
-url=https://metacpan.org/release/WWW-RobotRules
-source=("http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/WWW-RobotRules-${pkgver}.tar.gz")
-md5sums=(b7186e8b8b3701e70c22abf430742403)
-sha512sums=(781a2fc90e4efed901a91ecf4f2aaac2684409c6a75a8434ff140654838bb05d11f8fa760642e20eee96450d3ced6815a4dab11a4245bc8120c69ca68ab49e44)
-_distdir="${srcdir}/WWW-RobotRules-${pkgver}"
+pkgrel=2
+pkgdesc="Database of robots.txt-derived permissions"
+arch=('any')
+url="https://metacpan.org/release/WWW-RobotRules"
+license=('PerlArtistic' 'GPL')
+depends=('perl' 'perl-uri')
+options=('!emptydirs')
+source=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/WWW-RobotRules-${pkgver}.tar.gz)
+sha1sums=('e158e6559307878b32d8e4c241bf257c2bc88ebb')
 
-build()
-(
-    export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
-      PERL_AUTOINSTALL=--skipdeps                            \
-      PERL_MM_OPT="INSTALLDIRS=vendor"     \
-      PERL_MB_OPT="--installdirs vendor" \
-      MODULEBUILDRC=/dev/null
+build() {
+  cd "${srcdir}/WWW-RobotRules-${pkgver}"
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
 
-    cd "$_distdir"
-    /usr/bin/perl Makefile.PL
-    make
-)
+check() {
+  cd "${srcdir}/WWW-RobotRules-${pkgver}"
+  make test
+}
 
-check()
-(
-    export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
-    cd "$_distdir"
-    make test
-)
-
 package() {
-    cd "$_distdir"
-    make DESTDIR="$pkgdir" install
+  cd "${srcdir}/WWW-RobotRules-${pkgver}"
+  make DESTDIR="${pkgdir}" install
 }
-
-# Local Variables:
-# mode: shell-script
-# sh-basic-offset: 2
-# End:
-# vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list