# HG changeset patch # User Pascal Bellard # Date 1289040341 -3600 # Node ID e318c7e83860822a90ca1c6f3617b199943c07f2 # Parent 960f37e7ed9dfce41636d851882f1d84df2ef22d mplayerplug-in: fix FIREFOX_VER diff -r 960f37e7ed9d -r e318c7e83860 mplayerplug-in/receipt --- a/mplayerplug-in/receipt Sat Nov 06 11:06:42 2010 +0100 +++ b/mplayerplug-in/receipt Sat Nov 06 11:45:41 2010 +0100 @@ -11,7 +11,12 @@ WEB_SITE="http://mplayerplug-in.sourceforge.net/" WGET_URL="http://downloads.sourceforge.net/mplayerplug-in/$TARBALL" TAGS="player audio video browser" -FIREFOX_VER=`cat $WOK/firefox/receipt | grep VERSION= | cut -d \" -f 2` + +get_firefox_version() +{ + FIREFOX_VER=`cat $1/var/lib/tazpkg/installed/firefox/receipt | \ + grep VERSION= | cut -d \" -f 2` +} # Rules to configure and make the package. compile_rules() @@ -31,6 +36,7 @@ EOT make distclean touch install.sh + get_firefox_version ./configure --prefix=/usr --sysconfdir=/etc \ --enable-gtk2 \ --enable-wmp \ @@ -58,6 +64,7 @@ echo -n "Processing post install commands..." local root root=$1 + get_firefox_version $1 for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do ln -s $i $root/usr/lib/firefox-$FIREFOX_VER/plugins done