get-scripts view flash-plugin @ rev 79

libreoffice: fix menu entries
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 09 11:04:15 2019 +0200 (13 months ago)
parents c2d95308d39b
children
line source
1 SHORT_DESC="Adobe Flash Player."
2 WEB_SITE="http://www.adobe.com/products/flash/"
3 # end of get.list data
5 VERSION="$(wget -q -O - http://www.adobe.com/software/flash/about/ | sed -n '/Linux/,/<\/tr/s/[^>]*>\([0-9].*\)<.*/\1/p')"
6 TARBALL="flash_player_npapi_linux.i386.tar.gz"
7 WGET_URL=https://fpdownload.adobe.com/get/flashplayer/pdc/$VERSION/$TARBALL
8 wget --no-check-certificate -O $TARBALL $WGET_URL
9 [ -f $TARBALL ] || abort_package
10 tar xzf $TARBALL
13 # Install files
14 chmod 755 libflashplayer.so
15 chown root.root libflashplayer.so
16 USR=$PACKAGE-$VERSION/fs/usr
17 mkdir -p $USR/share/flash $USR/lib
18 mv libflashplayer.so $USR/share/flash
19 mv usr/bin $USR
20 mv usr/share/icons usr/share/pixmaps usr/share/applications $USR/share
22 # Sanity Check: Reexport firefox libraries if they don't exist
23 for i in /usr/lib/firefox/*.so ; do
24 [ -f $i ] && [ -z "$(ls /usr/lib/$(basename $i 2> /dev/null))" ] &&
25 ln -s $i $USR/lib
26 done
28 # Create pseudo package
29 cat > $PACKAGE-$VERSION/receipt <<EOT
30 PACKAGE="$PACKAGE"
31 VERSION="$VERSION"
32 CATEGORY="non-free"
33 SHORT_DESC="$SHORT_DESC"
34 WEB_SITE="$WEB_SITE"
35 DEPENDS="libfirefox curl atk cairo expat fontconfig freetype glib gtk+ libpng \
36 nss pango pixman xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXcomposite \
37 xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \
38 xorg-libXinerama xorg-libXrandr xorg-libXrender xorg-libXt zlib"
40 post_install()
41 {
42 echo -n "Processing post install commands..."
44 [ -d \$1/usr/lib/mozilla/plugins ] || mkdir -p \$1/usr/lib/mozilla/plugins
45 ln -s /usr/share/flash/libflashplayer.so \$1/usr/lib/mozilla/plugins
46 [ -d \$1/opt/google/chrome/plugins ] || mkdir -p \$1/opt/google/chrome/plugins
47 ln -s /usr/share/flash/libflashplayer.so \$1/opt/google/chrome/plugins/libgcflashplayer.so
48 [ -d \$1/usr/lib/opera/plugins ] || mkdir -p \$1/usr/lib/opera/plugins
49 ln -s /usr/share/flash/libflashplayer.so \$1/usr/lib/opera/plugins/libflashplayer.so
50 status
51 }
53 post_remove()
54 {
55 echo -n "Processing post remove commands..."
56 rm -f \$1/usr/lib/mozilla/plugins/libflashplayer.so
57 rm -f \$1/opt/google/chrome/plugins/libgcflashplayer.so
58 rm -f \$1/usr/lib/opera/plugins/libflashplayer.so
59 status
60 }
61 EOT