diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2011-04-25 13:37:00 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2018-05-31 22:45:18 +0200 |
commit | 75a4a592e5ccda30715f93563d741b83e0dcf39e (patch) | |
tree | 502f745607e77a2c4386ad38d818ddcafe81489c /extra/source/flashplayer-plugin/flashplayer-plugin.SlackBuild | |
parent | b76270bf9e6dd375e495fec92140a79a79415d27 (diff) | |
download | current-75a4a592e5ccda30715f93563d741b83e0dcf39e.tar.gz current-75a4a592e5ccda30715f93563d741b83e0dcf39e.tar.xz |
Slackware 13.37slackware-13.37
Mon Apr 25 13:37:00 UTC 2011
Slackware 13.37 x86_64 stable is released!
Thanks to everyone who pitched in on this release: the Slackware team,
the folks producing upstream code, and linuxquestions.org for providing
a great forum for collaboration and testing.
The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a
dual-sided
32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware
project by picking up a copy from store.slackware.com. We're taking
pre-orders now, and offer a discount if you sign up for a subscription.
As always, thanks to the Slackware community for testing, suggestions,
and feedback. :-)
Have fun!
Diffstat (limited to 'extra/source/flashplayer-plugin/flashplayer-plugin.SlackBuild')
-rwxr-xr-x | extra/source/flashplayer-plugin/flashplayer-plugin.SlackBuild | 76 |
1 files changed, 54 insertions, 22 deletions
diff --git a/extra/source/flashplayer-plugin/flashplayer-plugin.SlackBuild b/extra/source/flashplayer-plugin/flashplayer-plugin.SlackBuild index 24ce32a5d..e61ce9174 100755 --- a/extra/source/flashplayer-plugin/flashplayer-plugin.SlackBuild +++ b/extra/source/flashplayer-plugin/flashplayer-plugin.SlackBuild @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (c) 2008, 2009 Eric Hameleers, Eindhoven, NL +# Copyright 2008, 2009, 2010 Eric Hameleers, Eindhoven, NL # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -26,7 +26,7 @@ # By: Eric Hameleers <alien@slackware.com> # For: flashplayer-plugin # Descr: Adobe flash player plugin for mozilla -# URL: http://labs.adobe.com/ +# URL: http://labs.adobe.com/technologies/flashplayer10/ # Needs: # Changelog: # 10.0.d20.7-1: 16/Dec/2008 by Eric Hameleers <alien@slackware.com> @@ -39,6 +39,14 @@ # * Update (plugs vulnerability). # 10.0.42.34-1: 14/dec/2009 by Patrick J. Volkerding <volkerdi@slackware.com> # * Update (plugs vulnerability). +# 10.091510-1: 15/sep/2010 by Eric Hameleers <alien@slackware.com> +# * Preview1 of "flash player square". +# 10.092710-1: 28/sep/2010 by Eric Hameleers <alien@slackware.com> +# * Preview2 of "flash player square". +# 10_2.111710-1:28/sep/2010 by Eric Hameleers <alien@slackware.com> +# * New preview of "flash player square" for 64-bit Linux; there +# is no more 32-bit "square" version, because new developments +# are being folded into regular flashplayer10. # # Run 'sh flashplayer-plugin.SlackBuild' to build a Slackware package. # The package (.txz) and .txt file as well as build logs are created in /tmp . @@ -49,16 +57,11 @@ # Set initial variables: PRGNAM=flashplayer-plugin -VERSION=${VERSION:-10.0.42.34} -ARCH=${ARCH:-x86_64} +SRCVER=${SRCVER:-10_2} +BLDVER=${BLDVER:-111710} +VERSION=$SRCVER.$BLDVER BUILD=${BUILD:-1} -if [ "$ARCH" = "x86_64" ]; then - LIBDIRSUFFIX="64" -else - LIBDIRSUFFIX="" -fi - # Where do we look for sources? SRCDIR=$(cd $(dirname $0); pwd) @@ -67,8 +70,34 @@ TMP=${TMP:-/tmp/build} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -SOURCE="$SRCDIR/libflashplayer-${VERSION}.linux-${ARCH}.so.tar.gz" -SRCURL="http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-${VERSION}.linux-${ARCH}.so.tar.gz" +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + +case "$ARCH" in + x86_64) + PREVER=${PREVER:-3} + LIBDIRSUFFIX="64" + ARCHBITS="64" + ;; + i?86) + PREVER=${PREVER:-2} + LIBDIRSUFFIX="" + ARCHBITS="32" + ;; + *) + echo "Unsupported architecture '$ARCH'" + exit 1 + ;; +esac + +SOURCE="$SRCDIR/flashplayer${SRCVER}_p${PREVER}_${ARCHBITS}bit_linux_${BLDVER}.tar.gz" +SRCURL="http://download.macromedia.com/pub/labs/flashplayer10/flashplayer${SRCVER}_p${PREVER}_${ARCHBITS}bit_linux_${BLDVER}.tar.gz" ## ## --- with a little luck, you won't have to edit below this point --- ## @@ -124,17 +153,20 @@ cd $TMP/tmp-$PRGNAM echo "Extracting the source archive(s) for $PRGNAM..." tar -xvf ${SOURCE} chown -R root:root * -chmod -R u+w,go+r-w,a-s . +chmod -R u+w,go+r-w,a+X-s . -if [ "$ARCH" = "x86_64" ]; then - if ! file libflashplayer.so | grep -q "ELF 64-bit" ; then - echo "The downloaded plugin is not for the '$ARCH' architecture!"; exit 1 - fi -elif [[ "$ARCH" =~ "i?86" ]]; then - if ! file libflashplayer.so | grep -q "ELF 32-bit" ; then - echo "The downloaded plugin is not for the '$ARCH' architecture!"; exit 1 - fi -fi +case "$ARCH" in + x86_64) + if ! file libflashplayer.so | grep -q "ELF 64-bit" ; then + echo "The downloaded plugin is not for the '$ARCH' architecture!"; exit 1 + fi + ;; + i?86) + if ! file libflashplayer.so | grep -q "ELF 32-bit" ; then + echo "The downloaded plugin is not for the '$ARCH' architecture!"; exit 1 + fi + ;; +esac # Install the plugin to the package dir: mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/mozilla/plugins |