wok-6.x 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 3bac1508116b
children 463b0b8fa55c
files get-flash-plugin/receipt get-flash-plugin/stuff/get-flash-plugin
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/get-flash-plugin/receipt	Sat Mar 01 00:04:19 2008 +0000
     1.3 @@ -0,0 +1,17 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="get-flash-plugin"
     1.7 +VERSION="1.00"
     1.8 +CATEGORY="non-free"
     1.9 +SHORT_DESC="Get Adobe Flash Player."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +WEB_SITE="http://www.adobe.com/products/flash/"
    1.12 +DEPENDS="firefox"
    1.13 +
    1.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.15 +genpkg_rules()
    1.16 +{
    1.17 +	mkdir -p $fs/usr/bin
    1.18 +	cp stuff/get-flash-plugin $fs/usr/bin
    1.19 +}
    1.20 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/get-flash-plugin/stuff/get-flash-plugin	Sat Mar 01 00:04:19 2008 +0000
     2.3 @@ -0,0 +1,49 @@
     2.4 +#!/bin/sh -e
     2.5 +
     2.6 +DIR=install_flash_player_9_linux
     2.7 +TARBALL=$DIR.tar.gz
     2.8 +WEB_SITE="http://www.adobe.com/products/flash/"
     2.9 +
    2.10 +# Download tarball
    2.11 +wget http://fpdownload.macromedia.com/get/flashplayer/current/$TARBALL
    2.12 +
    2.13 +# Extract
    2.14 +tar xzf $TARBALL
    2.15 +
    2.16 +cd $DIR
    2.17 +VERSION=""
    2.18 +for i in MAJ MIN REV ; do
    2.19 +  n=$(grep ^FPVERSION$i flashplayer-installer | cut -d= -f2)
    2.20 +  [ -n "$VERSION" ] && VERSION=$VERSION.
    2.21 +  VERSION=$VERSION$n
    2.22 +done
    2.23 +
    2.24 +# Install files
    2.25 +cp libflashplayer.so /usr/lib/firefox*/plugins
    2.26 +chmod 755 /usr/lib/firefox*/plugins/libflashplayer.so
    2.27 +
    2.28 +# Create pseudo package
    2.29 +mkdir -p fs/usr/bin
    2.30 +cp /usr/bin/get-flash-plugin fs/usr/bin
    2.31 +find fs | cpio -o -H newc | gzip -9 > fs.cpio.gz
    2.32 +ls /usr/lib/firefox*/plugins/libflashplayer.so > files.list
    2.33 +cat > receipt <<EOT
    2.34 +PACKAGE="flash-plugin"
    2.35 +VERSION="$VERSION"
    2.36 +CATEGORY="non-free"
    2.37 +SHORT_DESC="Adobe Flash Player."
    2.38 +WEB_SITE="$WEB_SITE"
    2.39 +EOT
    2.40 +cpio -o -H newc > flash-plugin-$VERSION.tazpkg <<EOT
    2.41 +receipt
    2.42 +files.list
    2.43 +fs.cpio.gz
    2.44 +EOT
    2.45 +
    2.46 +# Install pseudo package
    2.47 +tazpkg install flash-plugin-$VERSION.tazpkg
    2.48 +cd ..
    2.49 +
    2.50 +# Clean
    2.51 +rm -rf $DIR $TARBALL
    2.52 +