summaryrefslogtreecommitdiff
path: root/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2010-05-11 22:24:43 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:24:43 +0200
commit86d1e3c5c8e8b3ba2c8c2edf71fe40485a38cf67 (patch)
tree18166faf3f866ef3a81d36758231f56c41a0ff52 /multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
parent1636c71eecaac9d684ec62309b6cbbe33654e3cf (diff)
downloadslackbuilds-86d1e3c5c8e8b3ba2c8c2edf71fe40485a38cf67.tar.gz
multimedia/flash-player-plugin: Updated for version 10.0_r12
Diffstat (limited to 'multimedia/flash-player-plugin/flash-player-plugin.SlackBuild')
-rw-r--r--multimedia/flash-player-plugin/flash-player-plugin.SlackBuild24
1 files changed, 19 insertions, 5 deletions
diff --git a/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild b/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
index 53312808a8..4bfe4be87e 100644
--- a/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
+++ b/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
@@ -5,11 +5,19 @@
# Script maintained by Robby Workman <rworkman@slackbuilds.org>
PRGNAM=flash-player-plugin
-VERSION=9.0_r124
+VERSION=10.0_r12
ARCH=i386
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+# If you use or intend to use Opera at some point, and you want
+# this plugin available to it, then pass "yes" as the value to this
+# variable: USE_OPERA=yes ./flash-player-plugin.SlackBuild
+# Note that this should *NOT* be needed if you installed Opera using
+# the SlackBuilds.org build script, as we do a simple patch there to
+# make it look in /usr/lib/mozilla/plugins
+USE_OPERA=${USE_OPERA:-no}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -20,8 +28,8 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar xvf $CWD/install_flash_player_9_linux.tar.gz
-cd install_flash_player_9_linux
+tar xvf $CWD/install_flash_player_10_linux.tar.gz
+cd install_flash_player_10_linux
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -41,11 +49,17 @@ if [ ! "$(echo $_REALVERS | tr ' ' _)" = "$(echo $VERSION)" ]; then
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
+# If the user wants an opera plugin installed, then we'll do that too.
+if [ ! "$USE_OPERA" = "no" ]; then
+ mkdir -p $PKG/usr/lib/opera/plugins
+ cd $PKG/usr/lib/opera/plugins
+ ln -s /usr/lib/mozilla/plugins/libflashplayer.so .
+ cd -
+fi
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild