aboutsummaryrefslogtreecommitdiff
path: root/multimedia/mplayer-codecs32
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/mplayer-codecs32')
-rw-r--r--multimedia/mplayer-codecs32/mplayer-codecs32.SlackBuild22
1 files changed, 10 insertions, 12 deletions
diff --git a/multimedia/mplayer-codecs32/mplayer-codecs32.SlackBuild b/multimedia/mplayer-codecs32/mplayer-codecs32.SlackBuild
index cdef81036d27d..14f6cdbee5ccc 100644
--- a/multimedia/mplayer-codecs32/mplayer-codecs32.SlackBuild
+++ b/multimedia/mplayer-codecs32/mplayer-codecs32.SlackBuild
@@ -23,12 +23,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mplayer-codecs32
-VERSION=20110131
+VERSION=${VERSION:-20110131}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+case "${ARCH:-$( uname -m )}" in
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,15 +40,13 @@ OUTPUT=${OUTPUT:-/tmp}
set -e
-if [ "$ARCH" != "i486" ]; then
- if [ "$ARCH" = "x86_64" ] ; then
- printf "\nThis is for 32-bit codecs only. If you need 64-bit codecs,\n"
- printf "then you need the \"mplayer-codecs64\" package instead.\n\n"
- exit 1
- else
- printf "$ARCH is not supported.\n"
- exit 1
- fi
+if [ "$ARCH" = "x86_64" ] ; then
+ printf "\nThis is for 32-bit codecs only. If you need 64-bit codecs,\n"
+ printf "then you need the \"mplayer-codecs64\" package instead.\n\n"
+ exit 1
+elif [ "$ARCH" != "i586" ]; then
+ printf "\n$ARCH is not supported (only i586).\n\n"
+ exit 1
fi
rm -rf $PKG