multimedia/mplayer-codecs: Miscellaneous cleanups

This commit is contained in:
Robby Workman 2010-05-23 02:32:16 -05:00
parent ac717f05a5
commit 516847ce7c

View file

@ -2,7 +2,7 @@
# Slackware build script for mplayer-codecs
# Copyright 2006-2009 Robby Workman, Northport, Alabama, USA
# Copyright 2006,2007,2008,2009,2010 Robby Workman, Northport, Alabama, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -24,12 +24,19 @@
PRGNAM=mplayer-codecs
VERSION=20071007
ARCH=${ARCH:-i486}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
RPMVERS="20061022" # only needed for x86_64
# Automatically determine the architecture we're building on:
case "$( uname -m )" in
i?86) export ARCH=i486 ;;
arm*) export ARCH=arm ;;
# use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;;
esac
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@ -41,10 +48,13 @@ if [ "$ARCH" = "x86_64" ] ; then
SRCNAME=essential
SRCARCH=amd64
LIBDIRSUFFIX="64"
else
ARCH="i486"
elif [ "$ARCH" = "i486" ]; then
SRCNAME=all
SRCARCH=i486
LIBDIRSUFFIX=""
else
printf "\n\n$ARCH is not supported...\n"
exit 1
fi
rm -rf $PKG