From 9f19b3e794091e125e192a25e3498bf92d4ab2c3 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 21 Mar 2017 03:02:03 -0400 Subject: multimedia/mplayer-codecs32: Allow VERSION override, i486=>i586. Signed-off-by: B. Watson Signed-off-by: David Spencer --- .../mplayer-codecs32/mplayer-codecs32.SlackBuild | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'multimedia/mplayer-codecs32') diff --git a/multimedia/mplayer-codecs32/mplayer-codecs32.SlackBuild b/multimedia/mplayer-codecs32/mplayer-codecs32.SlackBuild index cdef81036d..14f6cdbee5 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 -- cgit v1.2.3