wok rev 3409

update gecko-mediaplayer BUILD_DEPENDS and link to firefox
author Rohit Joshi <jozee@slitaz.org>
date Fri Jun 12 17:26:10 2009 +0000 (2009-06-12)
parents 126bfa34502c
children 0f072f890052
files gecko-mediaplayer/receipt
line diff
     1.1 --- a/gecko-mediaplayer/receipt	Fri Jun 12 21:34:57 2009 +0200
     1.2 +++ b/gecko-mediaplayer/receipt	Fri Jun 12 17:26:10 2009 +0000
     1.3 @@ -6,7 +6,7 @@
     1.4  SHORT_DESC="Browser plugin that uses gnome-mplayer to play media in a web browser"
     1.5  MAINTAINER="jozee@slitaz.org"
     1.6  DEPENDS="gnome-mplayer dbus-glib"
     1.7 -BUILD_DEPENDS="firefox-dev dbus-glib-dev"
     1.8 +BUILD_DEPENDS="firefox-dev dbus-dev dbus-glib-dev"
     1.9  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.10  WEB_SITE="http://code.google.com/p/gecko-mediaplayer/" 
    1.11  WGET_URL="http://gecko-mediaplayer.googlecode.com/files/$TARBALL"
    1.12 @@ -17,9 +17,10 @@
    1.13  {
    1.14  	cd $src	
    1.15  	./configure --prefix=/usr --sysconfdir=/etc \
    1.16 -	--disable-schemas-install --without-gconf &&
    1.17 +              --disable-schemas-install --without-gconf &&
    1.18  	make  &&
    1.19  	make DESTDIR=$PWD/_pkg install
    1.20 +	
    1.21  }
    1.22  
    1.23  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.24 @@ -27,4 +28,23 @@
    1.25  {
    1.26  	mkdir -p $fs/usr/lib
    1.27  	cp -a $_pkg/usr/lib/mozilla $fs/usr/lib
    1.28 +
    1.29  }
    1.30 +
    1.31 +post_install()
    1.32 +{
    1.33 +	echo -n "Processing post install commands..."
    1.34 +	local root
    1.35 +	root=$1
    1.36 +	for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do
    1.37 +		ln -s $i $root/usr/lib/firefox*/plugins
    1.38 +	done 
    1.39 +	status
    1.40 +}
    1.41 +
    1.42 +post_remove()
    1.43 +{
    1.44 +	echo -n "Processing post remove commands..."
    1.45 +	rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so
    1.46 +	status
    1.47 +}