summaryrefslogtreecommitdiff
path: root/misc/chm2pdf/chm2pdf.SlackBuild
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:10:50 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-06-04 01:10:50 -0400
commit2fcf39d5f5e0c3dbcb1d6a503aaf84933a93e29c (patch)
tree2ba5ac17c3c68f346ddea76c7e1d19c4230cc35d /misc/chm2pdf/chm2pdf.SlackBuild
parent27fb1cc36cb657f77d4714ecffc3a0860fadbda8 (diff)
downloadslackbuilds-2fcf39d5f5e0c3dbcb1d6a503aaf84933a93e29c.tar.gz
misc/chm2pdf: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'misc/chm2pdf/chm2pdf.SlackBuild')
-rw-r--r--misc/chm2pdf/chm2pdf.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/misc/chm2pdf/chm2pdf.SlackBuild b/misc/chm2pdf/chm2pdf.SlackBuild
index 0d69bd71da..ca8bcd7738 100644
--- a/misc/chm2pdf/chm2pdf.SlackBuild
+++ b/misc/chm2pdf/chm2pdf.SlackBuild
@@ -26,10 +26,19 @@
PRGNAM=chm2pdf
VERSION=${VERSION:-0.9.1}
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM