wok-stable diff foomatic-db-engine/receipt @ rev 10921
fix get-LibreOffice
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 05 21:16:43 2011 +0200 (2011-08-05) |
parents | a3ce54180620 |
children |
line diff
1.1 --- a/foomatic-db-engine/receipt Tue Mar 01 16:00:45 2011 +0100 1.2 +++ b/foomatic-db-engine/receipt Fri Aug 05 21:16:43 2011 +0200 1.3 @@ -16,6 +16,7 @@ 1.4 compile_rules() 1.5 { 1.6 mv $WOK/$PACKAGE/$PACKAGE* $WOK/$PACKAGE/$PACKAGE-$VERSION 1.7 + PERL_VER=$(grep ^VERSION= $WOK/perl/receipt | cut -d "=" -f2 | sed -e 's/"//g') 1.8 cd $src 1.9 ./configure \ 1.10 --prefix=/usr \ 1.11 @@ -24,9 +25,9 @@ 1.12 make && 1.13 eval `perl -V:archname` 1.14 make DESTDIR=$PWD/_pkg \ 1.15 - INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \ 1.16 - INSTALLSITELIB=/usr/lib/perl5/site_perl/current/ \ 1.17 - INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname} install 1.18 + INSTALLARCHLIB=/usr/lib/perl5/$PERL_VER/${archname} \ 1.19 + INSTALLSITELIB=/usr/lib/perl5/site_perl/$PERL_VER/ \ 1.20 + INSTALLSITEARCH=/usr/lib/perl5/site_perl/$PERL_VER/${archname} install 1.21 1.22 } 1.23 1.24 @@ -44,15 +45,5 @@ 1.25 1.26 pre_install() 1.27 { 1.28 - rm -f $1/usr/lib/perl5/site_perl/current 1.29 + rm -rf $1/usr/lib/perl5/site_perl/current 1.30 } 1.31 - 1.32 -post_install() 1.33 -{ 1.34 - # Move file to the right place 1.35 - cp -a $1/usr/lib/perl5/site_perl/current/* $1/usr/lib/perl5/site_perl/*.* 1.36 - rm -rf $1/usr/lib/perl5/site_perl/current 1.37 - 1.38 - # Keep path the remove the package 1.39 - ( cd /usr/lib/perl5/site_perl ; ln -s * current ) 1.40 -}