summaryrefslogtreecommitdiff
path: root/extra/google-chrome/google-chrome.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'extra/google-chrome/google-chrome.SlackBuild')
-rwxr-xr-xextra/google-chrome/google-chrome.SlackBuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/extra/google-chrome/google-chrome.SlackBuild b/extra/google-chrome/google-chrome.SlackBuild
index 16179d2a..de4c0b6f 100755
--- a/extra/google-chrome/google-chrome.SlackBuild
+++ b/extra/google-chrome/google-chrome.SlackBuild
@@ -24,7 +24,13 @@
PKGNAM=google-chrome
RELEASE=${RELEASE:-stable} # stable, beta, or unstable
-case "$(uname -m)" in
+
+# Allow $ARCH to be preset before running the script. This is useful in the
+# case where someone is running a 32-bit chroot environment under an x86_64
+# kernel:
+ARCH=${ARCH:-$(uname -m)}
+
+case "$ARCH" in
i?86) DEBARCH="i386" ; LIBDIRSUFFIX="" ; ARCH=i386 ;;
x86_64) DEBARCH="amd64" ; LIBDIRSUFFIX="64" ; ARCH=x86_64 ;;
*) echo "Package for $(uname -m) architecture is not available." ; exit 1 ;;