wok-current diff fpc/receipt @ rev 17512

util-linux-blkid: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jan 11 11:40:15 2015 +0100 (2015-01-11)
parents e43333671f19
children 9e01bc6321ea
line diff
     1.1 --- a/fpc/receipt	Tue Apr 01 09:10:23 2014 +0000
     1.2 +++ b/fpc/receipt	Sun Jan 11 11:40:15 2015 +0100
     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 +}