# HG changeset patch # User Pascal Bellard # Date 1204329859 0 # Node ID 50ae4849a22296595c920f577e4b4cdb88a9e030 # Parent 3bac1508116bd40037d17d7d743a11fba8455e6e Add: get-flash-plugin diff -r 3bac1508116b -r 50ae4849a222 get-flash-plugin/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get-flash-plugin/receipt Sat Mar 01 00:04:19 2008 +0000 @@ -0,0 +1,17 @@ +# SliTaz package receipt. + +PACKAGE="get-flash-plugin" +VERSION="1.00" +CATEGORY="non-free" +SHORT_DESC="Get Adobe Flash Player." +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://www.adobe.com/products/flash/" +DEPENDS="firefox" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp stuff/get-flash-plugin $fs/usr/bin +} + diff -r 3bac1508116b -r 50ae4849a222 get-flash-plugin/stuff/get-flash-plugin --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get-flash-plugin/stuff/get-flash-plugin Sat Mar 01 00:04:19 2008 +0000 @@ -0,0 +1,49 @@ +#!/bin/sh -e + +DIR=install_flash_player_9_linux +TARBALL=$DIR.tar.gz +WEB_SITE="http://www.adobe.com/products/flash/" + +# Download tarball +wget http://fpdownload.macromedia.com/get/flashplayer/current/$TARBALL + +# Extract +tar xzf $TARBALL + +cd $DIR +VERSION="" +for i in MAJ MIN REV ; do + n=$(grep ^FPVERSION$i flashplayer-installer | cut -d= -f2) + [ -n "$VERSION" ] && VERSION=$VERSION. + VERSION=$VERSION$n +done + +# Install files +cp libflashplayer.so /usr/lib/firefox*/plugins +chmod 755 /usr/lib/firefox*/plugins/libflashplayer.so + +# Create pseudo package +mkdir -p fs/usr/bin +cp /usr/bin/get-flash-plugin fs/usr/bin +find fs | cpio -o -H newc | gzip -9 > fs.cpio.gz +ls /usr/lib/firefox*/plugins/libflashplayer.so > files.list +cat > receipt < flash-plugin-$VERSION.tazpkg <