diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:14:17 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:14:17 -0400 |
commit | e7cd7088b889796659ec3e917184514a61c63fd2 (patch) | |
tree | b7d818258bad9ac09a6a3d921a16f3a24c1cd8ab /network/transmission | |
parent | 4f41ec01d4cf8583d0ba5961563df6aa6b805466 (diff) | |
download | slackbuilds-e7cd7088b889796659ec3e917184514a61c63fd2.tar.gz |
network/transmission: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/transmission')
-rw-r--r-- | network/transmission/transmission.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/network/transmission/transmission.SlackBuild b/network/transmission/transmission.SlackBuild index e3a11e0319..6a41187245 100644 --- a/network/transmission/transmission.SlackBuild +++ b/network/transmission/transmission.SlackBuild @@ -4,10 +4,19 @@ PRGNAM=transmission VERSION=1.92 -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 @@ -24,6 +33,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |