diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:15:26 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:15:26 -0400 |
commit | d0b3bfe2987293dd88ca5e6438a8c7a2381b20b4 (patch) | |
tree | 6e21dd19ffcb80b536391a158a0db79f428a58fd /system/curlftpfs | |
parent | 5272df6f399a4f78e5cd75cd2f7256ef922b7484 (diff) | |
download | slackbuilds-d0b3bfe2987293dd88ca5e6438a8c7a2381b20b4.tar.gz slackbuilds-d0b3bfe2987293dd88ca5e6438a8c7a2381b20b4.tar.xz |
system/curlftpfs: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/curlftpfs')
-rw-r--r-- | system/curlftpfs/curlftpfs.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/system/curlftpfs/curlftpfs.SlackBuild b/system/curlftpfs/curlftpfs.SlackBuild index 74df6e4d001..129361cca2f 100644 --- a/system/curlftpfs/curlftpfs.SlackBuild +++ b/system/curlftpfs/curlftpfs.SlackBuild @@ -24,10 +24,19 @@ PRGNAM=curlftpfs VERSION=0.9.2 -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 @@ -42,6 +51,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |