wok-6.x rev 13209

get-flash-plugin: add chrome & opera support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 07 09:15:33 2012 +0200 (2012-08-07)
parents 03afa2371fe5
children 518a64ad039f
files get-flash-plugin/receipt get-flash-plugin/stuff/get-flash-plugin
line diff
     1.1 --- a/get-flash-plugin/receipt	Mon Aug 06 15:22:20 2012 +0200
     1.2 +++ b/get-flash-plugin/receipt	Tue Aug 07 09:15:33 2012 +0200
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="get-flash-plugin"
     1.7 -VERSION="1.2"
     1.8 +VERSION="1.3"
     1.9  CATEGORY="non-free"
    1.10  SHORT_DESC="Get Adobe Flash Player."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
     2.1 --- a/get-flash-plugin/stuff/get-flash-plugin	Mon Aug 06 15:22:20 2012 +0200
     2.2 +++ b/get-flash-plugin/stuff/get-flash-plugin	Tue Aug 07 09:15:33 2012 +0200
     2.3 @@ -84,15 +84,21 @@
     2.4  {
     2.5  	echo -n "Processing post install commands..."
     2.6   
     2.7 -	[ -d /usr/lib/mozilla/plugins ] || mkdir -p \$1/usr/lib/mozilla/plugins
     2.8 +	[ -d \$1/usr/lib/mozilla/plugins ] || mkdir -p \$1/usr/lib/mozilla/plugins
     2.9  	ln -s /usr/share/flash/libflashplayer.so \$1/usr/lib/mozilla/plugins
    2.10 +	[ -d \$1/opt/google/chrome/plugins ] || mkdir -p \$1/opt/google/chrome/plugins
    2.11 +	ln -s /usr/share/flash/libflashplayer.so \$1/opt/google/chrome/plugins/libgcflashplayer.so
    2.12 +	[ -d \$1/usr/lib/opera/plugins ] || mkdir -p \$1/usr/lib/opera/plugins
    2.13 +	ln -s /usr/share/flash/libflashplayer.so \$1/usr/lib/opera/plugins/libflashplayer.so
    2.14  	status
    2.15  }
    2.16  
    2.17  post_remove()
    2.18  {
    2.19  	echo -n "Processing post remove commands..."
    2.20 -	rm -f /usr/lib/mozilla/plugins/libflashplayer.so
    2.21 +	rm -f \$1/usr/lib/mozilla/plugins/libflashplayer.so
    2.22 +	rm -f \$1/opt/google/chrome/plugins/libgcflashplayer.so
    2.23 +	rm -f \$1/usr/lib/opera/plugins/libflashplayer.so
    2.24  	status
    2.25  }
    2.26  EOT