[Slackbuilds-users] ARCH Patch for flashplayer-plugin.SlackBuild

Konrad J Hambrick kjhambrick at gmail.com
Fri Nov 11 20:12:22 UTC 2016


Robbie / All --

Slight Mod to flashplayer-plugin.SlackBuild to allow ARCH=override on
multilib systems.

Tested on Slackware64 14.2 + Multilib.

Both ARCH=i386 and ARCH=x86_64 work fine ...

Not sure what would make sense but maybe a BLURB in the README would be
warranted as well ?

Thanks !

-- kjh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20161111/d82b2774/attachment.html>
-------------- next part --------------
--- flashplayer-plugin.SlackBuild.orig	2016-10-29 02:58:39.870661303 -0500
+++ flashplayer-plugin.SlackBuild	2016-11-11 09:22:31.475355587 -0600
@@ -27,11 +27,14 @@
 
 VERS_MAJ=$(printf $VERSION | cut -d. -f1)
 
-case "$( uname -m )" in
-  i?86) ARCH=i386 ;;
-  arm*) ARCH=arm ;;
-     *) ARCH=$( uname -m ) ;;
-esac
+if [ "$ARCH" = "" ]
+then
+  case "$( uname -m )" in
+    i?86) ARCH=i386 ;;
+    arm*) ARCH=arm ;;
+       *) ARCH=$( uname -m ) ;;
+  esac
+fi
 
 if [ "$ARCH" = "x86_64" ]; then
   LIBDIRSUFFIX="64"


More information about the SlackBuilds-users mailing list