diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:11:41 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:11:41 -0400 |
commit | f1334b68e70ade6e2f46df19b7cd0d4d38fff290 (patch) | |
tree | b5b325b48cc25422a9e915461ab8fd00245735ec /multimedia/gtk-recordmydesktop | |
parent | a11f23c1c45727e6b8348b38017cad7d2ee1b6fc (diff) | |
download | slackbuilds-f1334b68e70ade6e2f46df19b7cd0d4d38fff290.tar.gz |
multimedia/gtk-recordmydesktop: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'multimedia/gtk-recordmydesktop')
-rw-r--r-- | multimedia/gtk-recordmydesktop/gtk-recordmydesktop.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/multimedia/gtk-recordmydesktop/gtk-recordmydesktop.SlackBuild b/multimedia/gtk-recordmydesktop/gtk-recordmydesktop.SlackBuild index 75785b3381..d41410df13 100644 --- a/multimedia/gtk-recordmydesktop/gtk-recordmydesktop.SlackBuild +++ b/multimedia/gtk-recordmydesktop/gtk-recordmydesktop.SlackBuild @@ -5,10 +5,19 @@ PRGNAM=gtk-recordmydesktop VERSION=${VERSION:-0.3.8} -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} 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 @@ -23,6 +32,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |