summaryrefslogtreecommitdiff
path: root/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2010-05-11 19:45:34 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 19:45:34 +0200
commitb6a2b04b85ca6c27100a498c938f2269ebbbb7d0 (patch)
treea7afc2b956e74d065e73849d8c48f8562ed8a1a5 /multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
parent9abc5bb0afa8838da94af540c6203d52ce2db487 (diff)
downloadslackbuilds-b6a2b04b85ca6c27100a498c938f2269ebbbb7d0.tar.gz
multimedia/flash-player-plugin: Updated for version 9.0_r124
Diffstat (limited to 'multimedia/flash-player-plugin/flash-player-plugin.SlackBuild')
-rw-r--r--multimedia/flash-player-plugin/flash-player-plugin.SlackBuild41
1 files changed, 25 insertions, 16 deletions
diff --git a/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild b/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
index e186f738d2..53312808a8 100644
--- a/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
+++ b/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
@@ -1,43 +1,52 @@
#!/bin/sh
## Written by hollywoodb (hollywoodb@fastmail.fm)
-
# Modified by the SlackBuilds.org project
+# Script maintained by Robby Workman <rworkman@slackbuilds.org>
-## Verify script is being run by root user.
-if [ "$(id -u)" != "0" ]; then
- echo "This script must be run as root!"
- exit 1
-fi
-
-set -e
-
-PRGNAM=flash-player-plugin
-VERSION=9.0.31.0
-ARCH=${ARCH:-i386}
+PRGNAM=flash-player-plugin
+VERSION=9.0_r124
+ARCH=i386
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-CWD=`pwd`
+
+CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar -xvzf $CWD/install_flash_player_9_linux.tar.gz
+tar xvf $CWD/install_flash_player_9_linux.tar.gz
cd install_flash_player_9_linux
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+# Check to make sure we're packaging the same version that this script
+# was written to handle:
+_REALVERS=$(strings libflashplayer.so | grep -e "^Shockwave Flash [.\d+]*" | sed -e "s/Shockwave Flash //g")
+if [ ! "$(echo $_REALVERS | tr ' ' _)" = "$(echo $VERSION)" ]; then
+ echo
+ echo "This build script was written for a different version of the"
+ echo "flash plugin than you have downloaded. This is probably due"
+ echo "to Adobe changing the upstream tarball - they don't have"
+ echo "versioned tarballs - and it's almost certainly nothing to be"
+ echo "concerned about. However, if this package doesn't build or"
+ echo "work as expected, contact the SlackBuilds.org project on our"
+ echo "users mailing list."
+ echo
+ sleep 5
+fi
+
# This is repackaging of a binary plugin - no SLKCFLAGS required,
# nor does anything need to be compiled
mkdir -p $PKG/usr/lib/mozilla/plugins
install -m 0755 libflashplayer.so $PKG/usr/lib/mozilla/plugins
-install -m 0644 flashplayer.xpt $PKG/usr/lib/mozilla/plugins
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-install -m 0644 Readme.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install