diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:10:50 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:10:50 -0400 |
commit | 2fcf39d5f5e0c3dbcb1d6a503aaf84933a93e29c (patch) | |
tree | 2ba5ac17c3c68f346ddea76c7e1d19c4230cc35d /misc/chm2pdf/chm2pdf.SlackBuild | |
parent | 27fb1cc36cb657f77d4714ecffc3a0860fadbda8 (diff) |
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.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/misc/chm2pdf/chm2pdf.SlackBuild b/misc/chm2pdf/chm2pdf.SlackBuild index 0d69bd71dac67..ca8bcd77388cd 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 |