wok-4.x rev 7143

mplayerplug-in: fix FIREFOX_VER
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 06 11:45:41 2010 +0100 (2010-11-06)
parents 960f37e7ed9d
children da9081c3c915
files mplayerplug-in/receipt
line diff
     1.1 --- a/mplayerplug-in/receipt	Sat Nov 06 11:06:42 2010 +0100
     1.2 +++ b/mplayerplug-in/receipt	Sat Nov 06 11:45:41 2010 +0100
     1.3 @@ -11,7 +11,12 @@
     1.4  WEB_SITE="http://mplayerplug-in.sourceforge.net/" 
     1.5  WGET_URL="http://downloads.sourceforge.net/mplayerplug-in/$TARBALL"
     1.6  TAGS="player audio video browser"
     1.7 -FIREFOX_VER=`cat $WOK/firefox/receipt | grep VERSION= | cut -d \" -f 2`
     1.8 +
     1.9 +get_firefox_version()
    1.10 +{
    1.11 +	FIREFOX_VER=`cat $1/var/lib/tazpkg/installed/firefox/receipt | \
    1.12 +			grep VERSION= | cut -d \" -f 2`
    1.13 +}
    1.14  
    1.15  # Rules to configure and make the package.
    1.16  compile_rules()
    1.17 @@ -31,6 +36,7 @@
    1.18  EOT
    1.19  	make distclean
    1.20  	touch install.sh
    1.21 +	get_firefox_version
    1.22  	./configure --prefix=/usr --sysconfdir=/etc \
    1.23  		--enable-gtk2 \
    1.24  		--enable-wmp \
    1.25 @@ -58,6 +64,7 @@
    1.26  	echo -n "Processing post install commands..."
    1.27  	local root
    1.28  	root=$1
    1.29 +	get_firefox_version $1
    1.30  	for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do
    1.31  		ln -s $i $root/usr/lib/firefox-$FIREFOX_VER/plugins
    1.32  	done