summaryrefslogtreecommitdiff
path: root/multimedia/mythplugins
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-03-21 03:03:01 -0400
committerDavid Spencer <idlemoor@slackbuilds.org>2017-03-25 13:28:22 +0000
commitac9aab5e3f50fde5a9ecc3d8ef1dd2d4ef5f4838 (patch)
treefa1c0353939d08a285f4b7b2bae06a6eab6a501d /multimedia/mythplugins
parent49b862f5c16ff38ec679dc7de5a10dc103aa3ed4 (diff)
downloadslackbuilds-ac9aab5e3f50fde5a9ecc3d8ef1dd2d4ef5f4838.tar.gz
multimedia/mythplugins: Allow VERSION override, i486=>i586.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'multimedia/mythplugins')
-rw-r--r--multimedia/mythplugins/mythplugins.SlackBuild9
1 files 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