diff options
Diffstat (limited to 'multimedia/flash-player-standalone/flash-player-standalone.SlackBuild')
-rw-r--r-- | multimedia/flash-player-standalone/flash-player-standalone.SlackBuild | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/multimedia/flash-player-standalone/flash-player-standalone.SlackBuild b/multimedia/flash-player-standalone/flash-player-standalone.SlackBuild index 28ce2d3776..5baffa16d6 100644 --- a/multimedia/flash-player-standalone/flash-player-standalone.SlackBuild +++ b/multimedia/flash-player-standalone/flash-player-standalone.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for flash-player-standalone -# Copyright 2007-2008 Heinz Wiesinger <hmwiesinger@gmx.at> +# Copyright 2007-2008 Heinz Wiesinger <pprkut@liwjatan.at> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=flash-player-standalone -VERSION=9.0.124.0 +VERSION=10.0.12.36 ARCH=i386 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -31,20 +31,35 @@ TAG=${TAG:-_SBo} CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} +OUTPUT=${OUTPUT:-/tmp} set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -tar xvf $CWD/flash_player_9_linux_dev.tar.gz -cd flash_player_9_linux_dev/standalone/release +tar xvf $CWD/flash_player_10_linux_dev.tar.gz +cd flash_player_10_linux_dev/standalone/release tar xvf flashplayer.tar.gz chown -R root:root . chmod -R u+w,go+r-w,a-s . -# This is repackaging of a binary plugin - no SLKCFLAGS required, +# Version check inspired by the flash-player-plugin script +_REALVERS=$(strings flashplayer | grep "LNX" | cut -d " " -f 2 | sed -e "s/\,/\./g") +if [ ! "$_REALVERS" = "$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/bin install -m 0755 flashplayer $PKG/usr/bin/ |