wok view get-flash-plugin/stuff/get-flash-plugin @ rev 305

Add: get-flash-plugin
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 01 00:04:19 2008 +0000 (2008-03-01)
parents
children c05ff7572e16
line source
1 #!/bin/sh -e
3 DIR=install_flash_player_9_linux
4 TARBALL=$DIR.tar.gz
5 WEB_SITE="http://www.adobe.com/products/flash/"
7 # Download tarball
8 wget http://fpdownload.macromedia.com/get/flashplayer/current/$TARBALL
10 # Extract
11 tar xzf $TARBALL
13 cd $DIR
14 VERSION=""
15 for i in MAJ MIN REV ; do
16 n=$(grep ^FPVERSION$i flashplayer-installer | cut -d= -f2)
17 [ -n "$VERSION" ] && VERSION=$VERSION.
18 VERSION=$VERSION$n
19 done
21 # Install files
22 cp libflashplayer.so /usr/lib/firefox*/plugins
23 chmod 755 /usr/lib/firefox*/plugins/libflashplayer.so
25 # Create pseudo package
26 mkdir -p fs/usr/bin
27 cp /usr/bin/get-flash-plugin fs/usr/bin
28 find fs | cpio -o -H newc | gzip -9 > fs.cpio.gz
29 ls /usr/lib/firefox*/plugins/libflashplayer.so > files.list
30 cat > receipt <<EOT
31 PACKAGE="flash-plugin"
32 VERSION="$VERSION"
33 CATEGORY="non-free"
34 SHORT_DESC="Adobe Flash Player."
35 WEB_SITE="$WEB_SITE"
36 EOT
37 cpio -o -H newc > flash-plugin-$VERSION.tazpkg <<EOT
38 receipt
39 files.list
40 fs.cpio.gz
41 EOT
43 # Install pseudo package
44 tazpkg install flash-plugin-$VERSION.tazpkg
45 cd ..
47 # Clean
48 rm -rf $DIR $TARBALL