# HG changeset patch # User Pascal Bellard # Date 1397569385 0 # Node ID a8694d4236f9feec396ae3725cb4fd08f76695bd # Parent 2532cbc29d1ef5b200ea283db3b0be52452401c2 add flash-plugin diff -r 2532cbc29d1e -r a8694d4236f9 flash-plugin --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flash-plugin Tue Apr 15 13:43:05 2014 +0000 @@ -0,0 +1,63 @@ +WEB_SITE="http://www.adobe.com/products/flash/" +SHORT_DESC="Adobe Flash Player." +TARBALL="install_flash_player_11_linux.i386.tar.gz" + +WGET_URL=http://fpdownload.macromedia.com/get/flashplayer/current/licensing/linux/$TARBALL +busybox wget -O $TARBALL $WGET_URL +[ -f $TARBALL ] || abort_package "Could not download $TARBALL. Exiting." +tar xzf $TARBALL +VERSION="$(strings libflashplayer.so | sed '/FlashPlayer_/!d;s/.*yer_\(.*\)_Flash.*/\1/;s/_/./g')" + +# Install files +chmod 755 libflashplayer.so +chown root.root libflashplayer.so +dir=$PACKAGE-$VERSION/fs +mkdir -p $dir/usr/share/flash +mv libflashplayer.so $dir/usr/share/flash +mv usr/bin $dir/usr +mv usr/share/icons $dir/usr/share +mv usr/share/pixmaps $dir/usr/share + +# Sanity Check: Reexport firefox libraries if they don't exist +dir=$PACKAGE-$VERSION/fs/usr/lib +mkdir -p $dir +for i in /usr/lib/firefox/*.so ; do + [ -f $i ] && [ -z "`ls /usr/lib/$(basename $i)`" ] && ln -s $i $dir +done + +# Create pseudo package +cat > $PACKAGE-$VERSION/receipt <