diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:11:33 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:11:33 -0400 |
commit | eb6a1aaab6468a7da5299a59a8ff286d46221eb6 (patch) | |
tree | 8e027ee12268636b3f3a4352802ca38910e7238a /multimedia/ffmpeg2theora | |
parent | 16c2d53a907cb45134027aef6ca6d530d5f78c14 (diff) |
multimedia/ffmpeg2theora: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'multimedia/ffmpeg2theora')
-rw-r--r-- | multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild b/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild index 0c82debfa1135..5d02230a36a9c 100644 --- a/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild +++ b/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild @@ -28,10 +28,19 @@ PRGNAM=ffmpeg2theora VERSION=0.24 -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 |