Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=wipv.git;a=commitdiff;h=1589821f99782ed7b43eb9ea33bb4206bd714cb0

commit 1589821f99782ed7b43eb9ea33bb4206bd714cb0
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Thu Jul 29 13:52:16 2010 +0200

perl-date-manip-6.11-2-x86_64
*install pkg into the good directory

diff --git a/source/devel-extra/perl-date-manip/FrugalBuild 
b/source/devel-extra/perl-date-manip/FrugalBuild
index c947938..fc085d6 100644
--- a/source/devel-extra/perl-date-manip/FrugalBuild
+++ b/source/devel-extra/perl-date-manip/FrugalBuild
@@ -4,11 +4,11 @@
_F_perl_name=Date-Manip
_F_perl_author=S/SB/SBECK
pkgver=6.11
-pkgrel=1
pkgdesc="Routines for parsing/manipulating dates and time."
Finclude perl
archs=('i686' 'x86_64')
sha1sums=('1c2ca1e0642e3c22f31ee21cc96e4b172a4a663d')
+pkgrel=2

build() {
Fcd
@@ -16,5 +16,24 @@ build() {
perl Build.PL || Fdie
./Build || Fdie
./Build install destdir=$Fdestdir || Fdie
+       #for use the same param as util.sh
+       if [ -d $Fdestdir/usr/lib/perl5/*.*.* ]; then
+               Fmv '/usr/lib/perl5/*.*.*' /usr/lib/perl5/current
+       fi
+       if [ -d $Fdestdir/usr/lib/perl5 ]; then
+               find $Fdestdir/usr/lib/perl5 -name perllocal.pod -exec rm {} \;
+               find $Fdestdir/usr/lib/perl5 -name .packlist -exec rm {} \;
+       fi
+       if [ -e $Fdestdir/usr/lib/perl5/site_perl/*.*.* ]; then
+               Fmv '/usr/lib/perl5/site_perl/*.*.*' 
/usr/lib/perl5/site_perl/current
+       fi
+       if [ -d $Fdestdir/usr/lib/perl5/site_perl ]; then
+               find $Fdestdir/usr/lib/perl5/site_perl -name perllocal.pod 
-exec rm {} \;
+               find $Fdestdir/usr/lib/perl5/site_perl -name .packlist -exec rm 
{} \;
+               rmdir -p --ignore-fail-on-non-empty \
+                       
$Fdestdir/usr/lib/perl5/site_perl/current/*/auto/{*,*/*} \
+                       &>/dev/null
+       fi
+
}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to