From ac717f05a5613be94ee6376de95e7f4db37f4339 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Sun, 23 May 2010 02:28:10 -0500 Subject: multimedia/flash-player-plugin: Miscellaneous cleanups --- .../flash-player-plugin/flash-player-plugin.SlackBuild | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'multimedia') diff --git a/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild b/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild index 35fb7f34d1..c8f78999f3 100644 --- a/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild +++ b/multimedia/flash-player-plugin/flash-player-plugin.SlackBuild @@ -6,12 +6,19 @@ PRGNAM=flash-player-plugin VERSION=10.0_r45 -ARCH=${ARCH:-i386} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} SRC_VERSION=10.0.45.2 +# Automatically determine the architecture we're building on: +case "$( uname -m )" in + i?86) ARCH=i386 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; +esac + # 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 @@ -34,10 +41,12 @@ cd $TMP if [ "$ARCH" = "x86_64" ]; then LIBDIRSUFFIX="64" tar xvf $CWD/libflashplayer-${SRC_VERSION}.linux-x86_64.so.tar.gz -else - ARCH=i386 +elif [ "$ARCH" = "i386" ]; then LIBDIRSUFFIX="" tar xvf $CWD/install_flash_player_10_linux.tar.gz +else + printf "\n\n$ARCH is unsupported...\n" + exit 1 fi # Check to make sure we're packaging the same version that this script -- cgit v1.2.3