[arch-commits] CVS update of extra/modules/perl-string-shellquote (PKGBUILD)

Kevin Piche kevin at archlinux.org
Sat Jan 26 03:58:32 UTC 2008


    Date: Friday, January 25, 2008 @ 22:58:32
  Author: kevin
    Path: /home/cvs-extra/extra/modules/perl-string-shellquote

Modified: PKGBUILD (1.4 -> 1.5)

upgpkg: perl-string-shellquote 1.03-2
Updated for new perl policy


----------+
 PKGBUILD |   27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)


Index: extra/modules/perl-string-shellquote/PKGBUILD
diff -u extra/modules/perl-string-shellquote/PKGBUILD:1.4 extra/modules/perl-string-shellquote/PKGBUILD:1.5
--- extra/modules/perl-string-shellquote/PKGBUILD:1.4	Wed Jul 19 17:39:04 2006
+++ extra/modules/perl-string-shellquote/PKGBUILD	Fri Jan 25 22:58:32 2008
@@ -1,21 +1,28 @@
-# $Id: PKGBUILD,v 1.4 2006/07/19 21:39:04 andyrtr Exp $
+# $Id: PKGBUILD,v 1.5 2008/01/26 03:58:32 kevin Exp $
 # Maintainer: arjan <arjan at archlinux.org>
 
 pkgname=perl-string-shellquote
+_realname=String-ShellQuote
 pkgver=1.03
-pkgrel=1
-pkgdesc="Perl module."
+pkgrel=2
+pkgdesc="Quote strings for passing through the shell"
 arch=(i686 x86_64)
-url='http://www.cpan.org/modules/by-module/URI/ROSCH/'
-depends=('perl')
+license=('GPL')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('perl>=5.10.0')
 replaces=string-shellquote
-source=(http://www.cpan.org/modules/by-module/URI/ROSCH/String-ShellQuote-$pkgver.tar.gz)
+source=(http://www.cpan.org/modules/by-module/URI/ROSCH/${_realname}-${pkgver}.tar.gz)
+options=(!emptydirs)
 md5sums=('b42822efe385f6604f55b0cea5ac0b76')
 
 build() {
-  cd $startdir/src/String-ShellQuote-1.03
-  perl Makefile.PL
+  cd ${startdir}/src/${_realname}-${pkgver}
+  # install module in vendor directories.
+  perl Makefile.PL INSTALLDIRS=vendor || return 1
   make || return 1
-  mkdir -p $startdir/pkg/usr/lib/perl5/site_perl/current/String
-  cp ShellQuote.pm $startdir/pkg/usr/lib/perl5/site_perl/current/String
+  make install DESTDIR=${startdir}/pkg || return 1
+
+  # remove perllocal.pod and .packlist
+  find ${startdir}/pkg -name perllocal.pod -delete
+  find ${startdir}/pkg -name .packlist -delete
 }




More information about the arch-commits mailing list