wok-next rev 5039
get-flash-plugin: libfirefox dep; improve for midori and opera
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Mar 03 15:14:37 2010 +0000 (2010-03-03) |
parents | 9b1b236344a6 |
children | ae58bb1d181a |
files | get-flash-plugin/receipt get-flash-plugin/stuff/get-flash-plugin |
line diff
1.1 --- a/get-flash-plugin/receipt Wed Mar 03 15:11:46 2010 +0000 1.2 +++ b/get-flash-plugin/receipt Wed Mar 03 15:14:37 2010 +0000 1.3 @@ -1,12 +1,13 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="get-flash-plugin" 1.7 -VERSION="1.1" 1.8 +VERSION="1.2" 1.9 CATEGORY="non-free" 1.10 SHORT_DESC="Get Adobe Flash Player." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 WEB_SITE="http://www.adobe.com/products/flash/" 1.13 -DEPENDS="firefox" 1.14 +DEPENDS="libfirefox" 1.15 +TAGS="flash" 1.16 1.17 # Rules to gen a SliTaz package suitable for Tazpkg. 1.18 genpkg_rules()
2.1 --- a/get-flash-plugin/stuff/get-flash-plugin Wed Mar 03 15:11:46 2010 +0000 2.2 +++ b/get-flash-plugin/stuff/get-flash-plugin Wed Mar 03 15:14:37 2010 +0000 2.3 @@ -67,13 +67,6 @@ 2.4 mkdir -p $dir 2.5 mv libflashplayer.so $dir 2.6 2.7 -# Export firefox libraries 2.8 -dir=flash-plugin-$VERSION/fs/usr/lib 2.9 -mkdir -p $dir 2.10 -for i in /usr/lib/firefox*/*.so ; do 2.11 - [ -f $i ] && ln -s $i $dir 2.12 -done 2.13 - 2.14 # Create pseudo package 2.15 cat > flash-plugin-$VERSION/receipt <<EOT 2.16 PACKAGE="flash-plugin" 2.17 @@ -81,7 +74,7 @@ 2.18 CATEGORY="non-free" 2.19 SHORT_DESC="Adobe Flash Player." 2.20 WEB_SITE="$WEB_SITE" 2.21 -DEPENDS="firefox curl atk cairo expat fontconfig freetype glib gtk+ libpng \ 2.22 +DEPENDS="libfirefox curl atk cairo expat fontconfig freetype glib gtk+ libpng \ 2.23 pango pixman xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXcomposite \ 2.24 xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \ 2.25 xorg-libXinerama xorg-libXrandr xorg-libXrender xorg-libXt zlib" 2.26 @@ -89,15 +82,21 @@ 2.27 post_install() 2.28 { 2.29 echo -n "Processing post install commands..." 2.30 - ln -s /usr/share/flash/libflashplayer.so \$1/usr/lib/firefox*/plugins 2.31 - [ -d \$1/usr/lib/mozilla/plugins ] || ln -s /usr/share/flash/libflashplayer.so \$1/usr/lib/mozilla/plugins 2.32 + if [ -d /var/lib/tazpkg/installed/firefox ] ; then 2.33 + ln -s /usr/share/flash/libflashplayer.so \$1/usr/lib/firefox*/plugins 2.34 + fi 2.35 + mkdir -p \$1/usr/lib/mozilla/plugins 2.36 + ln -s /usr/share/flash/libflashplayer.so \$1/usr/lib/mozilla/plugins 2.37 status 2.38 } 2.39 2.40 post_remove() 2.41 { 2.42 echo -n "Processing post remove commands..." 2.43 - rm -f /usr/lib/firefox*/plugins/libflashplayer.so 2.44 + if [ -d /var/lib/tazpkg/installed/firefox ] ; then 2.45 + rm -f /usr/lib/firefox*/plugins/libflashplayer.so 2.46 + fi 2.47 + rm -f /usr/lib/mozilla/plugins/libflashplayer.so 2.48 status 2.49 } 2.50 EOT