diff options
author | Philip Lacroix <slackph at posteo dot de> | 2017-02-14 15:44:37 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-02-17 21:52:06 +0000 |
commit | e43be4cb511e136745f6374bdfba723bf65f50d2 (patch) | |
tree | 94dfa2882440eeb6ac7314d2a7cb618fd5240d90 /multimedia/ucview/ucview.SlackBuild | |
parent | 43529820dc8cf587f3d210e0d719efe035bbbb52 (diff) |
multimedia/ucview: Switch to i586, tweak download.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'multimedia/ucview/ucview.SlackBuild')
-rw-r--r-- | multimedia/ucview/ucview.SlackBuild | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/multimedia/ucview/ucview.SlackBuild b/multimedia/ucview/ucview.SlackBuild index 4813135b7e506..7321cd23dfce8 100644 --- a/multimedia/ucview/ucview.SlackBuild +++ b/multimedia/ucview/ucview.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for ucview -# Copyright 2015 Philip Lacroix <slackph at posteo dot de> +# Copyright 2015-2017 Philip Lacroix <slackph at posteo dot de> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,13 +24,15 @@ PRGNAM=ucview VERSION=${VERSION:-20150221} -SRCVERSION=${SRCVERSION:-29bd93aeef0573c58c9aee665dc43fdfd1f77a1f} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} +# Source ID (GitHub). +SRCVER=${SRCVER:-29bd93aeef0573c58c9aee665dc43fdfd1f77a1f} + if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -41,8 +43,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" @@ -60,17 +62,10 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$SRCVERSION - -# The upstream tarball will be named differently, depending on -# the file being downloaded manually (web browser) or with wget. -if [ -e $CWD/$SRCVERSION.tar.gz ]; then - tar xvzf $CWD/$SRCVERSION.tar.gz -else - tar xvzf $CWD/$PRGNAM-$SRCVERSION.tar.gz -fi +rm -rf $PRGNAM-$SRCVER +tar xvzf $CWD/$PRGNAM-$SRCVER.tar.gz -cd $PRGNAM-$SRCVERSION/trunk/$PRGNAM +cd $PRGNAM-$SRCVER/trunk/$PRGNAM chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -78,6 +73,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Prepare for configuration and building. mkdir m4 autoreconf --force --install intltoolize --force @@ -101,7 +97,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" \ PRGMAN=$PKG/usr/man/man1 PRGDOC=$PKG/usr/doc/$PRGNAM-$VERSION -# Compress man page and install documentation. +# Compress man page, install documentation. gzip -9 $PRGMAN/$PRGNAM.1 mkdir -p $PRGDOC cp -a ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL README $PRGDOC/ |