summaryrefslogtreecommitdiff
path: root/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2011-10-08 22:59:57 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-10-11 21:20:29 -0500
commit5b193ac62ce5442e764e21f213b9e4140d57c05b (patch)
tree96b6ab9469c31a03f3fdf5f3503d1230af2898fd /multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
parent77b451c918e63445731f07720c2098df03b54f16 (diff)
downloadslackbuilds-5b193ac62ce5442e764e21f213b9e4140d57c05b.tar.gz
multimedia/flash-player-plugin: Updated for version 11.0.1.152.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'multimedia/flash-player-plugin/flash-player-plugin.SlackBuild')
-rw-r--r--multimedia/flash-player-plugin/flash-player-plugin.SlackBuild19
1 files changed, 13 insertions, 6 deletions
diff --git a/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild b/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
index a9ddfdee25..e0f00f1dd9 100644
--- a/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
+++ b/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
@@ -21,11 +21,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=flash-player-plugin
-VERSION=11_rc1
-DATESTAMP=090611
+VERSION=11.0.1.152
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+VERS_MAJ=$(printf $VERSION | cut -d. -f1)
+
case "$( uname -m )" in
i?86) ARCH=i386 ;;
arm*) ARCH=arm ;;
@@ -34,10 +35,8 @@ esac
if [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
- SRC_ARCH=64
elif [ "$ARCH" = "i386" ]; then
LIBDIRSUFFIX=""
- SRC_ARCH=32
else
printf "\n\n$ARCH is unsupported...\n"
exit 1
@@ -54,8 +53,16 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar xvf $CWD/flashplayer${VERSION}_install_lin_${SRC_ARCH}_${DATESTAMP}.tar.gz -C $PKG
-[ "$SRC_ARCH" = "64" ] && mv $PKG/usr/lib $PKG/usr/lib64
+tar xf $CWD/install_flash_player_${VERS_MAJ}_linux.${ARCH}.tar.gz -C $PKG
+[ "$ARCH" = "64" ] && mv $PKG/usr/lib $PKG/usr/lib64
+
+if ! strings $PKG/libflashplayer.so | grep -wq "^${VERSION}$" 2>/dev/null ; then
+ printf "\n\tThis script is written for version $VERSION of the plugin,\n"
+ printf "\tbut you don't seem to have that version. This is likely\n"
+ printf "\tokay, and it's almost surely not your fault - Adobe tends\n"
+ printf "\tto release new tarballs without changing the name.\n\n"
+ sleep 10
+fi
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/mozilla/plugins
mv $PKG/libflashplayer.so $PKG/usr/lib${LIBDIRSUFFIX}/mozilla/plugins