wok-6.x rev 16709
fpc: improve receipt
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu May 29 00:00:32 2014 +0200 (2014-05-29) |
parents | 393ec0342e42 |
children | 2df50097d513 |
files | fpc/receipt |
line diff
1.1 --- a/fpc/receipt Wed May 28 23:59:33 2014 +0200 1.2 +++ b/fpc/receipt Thu May 29 00:00:32 2014 +0200 1.3 @@ -54,10 +54,25 @@ 1.4 mkdir -p $fs/usr $fs/etc 1.5 cp -a $install/usr/bin $fs/usr 1.6 cp -a $install/usr/lib $fs/usr 1.7 + 1.8 # create symlink for compiler 1.9 ln -s /usr/lib/$PACKAGE/$VERSION/ppc386 $fs/usr/bin 1.10 + 1.11 # config file 1.12 - mkdir -p $fs/etc 1.13 - cp -a $fs/usr/lib/fpc/$VERSION/samplecfg $fs/etc/fpc.cfg 1.14 + #mkdir -p $fs/etc 1.15 + #cp -a $fs/usr/lib/fpc/$VERSION/samplecfg $fs/etc/fpc.cfg 1.16 } 1.17 1.18 +post_install() 1.19 +{ 1.20 + echo"Processing postinstall commands..." 1.21 + if [ ! -f $1/etc/fpc.cfg ]; then 1.22 + chroot $1/ fpcmkcfg > /etc/fpc.cfg 1.23 + fi 1.24 + 1.25 + # Fix units search path 1.26 + sed -i -e 's!^-Fu/units/$fpctarget!-Fu/usr/lib/fpc/2.6.4/units/$fpctarget!' \ 1.27 + -e 's!^-Fu/units/$fpctarget/*!-Fu/usr/lib/fpc/2.6.4/units/$fpctarget/*!' \ 1.28 + -e 's!^-Fu/units/$fpctarget/rtl!-Fu/usr/lib/fpc/2.6.4/units/$fpctarget/rtl!' $1/etc/fpc.cfg 1.29 + 1.30 +}