From ac9aab5e3f50fde5a9ecc3d8ef1dd2d4ef5f4838 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 21 Mar 2017 03:03:01 -0400 Subject: [PATCH] multimedia/mythplugins: Allow VERSION override, i486=>i586. Signed-off-by: B. Watson Signed-off-by: David Spencer --- multimedia/mythplugins/mythplugins.SlackBuild | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/multimedia/mythplugins/mythplugins.SlackBuild b/multimedia/mythplugins/mythplugins.SlackBuild index 6a4dc38760..eae6aac7fa 100644 --- a/multimedia/mythplugins/mythplugins.SlackBuild +++ b/multimedia/mythplugins/mythplugins.SlackBuild @@ -28,13 +28,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=mythplugins -VERSION=0.27.4 +VERSION=${VERSION:-0.27.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -45,8 +45,8 @@ TMP=${TMP:-/tmp/SBo} PKG=${TMP}/package-${PRGNAM} OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -89,7 +89,6 @@ make INSTALL_ROOT="$PKG" install find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -# Remove perllocal.pod and other special files that don't need to be installed find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION