summaryrefslogtreecommitdiff
path: root/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild
diff options
context:
space:
mode:
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