diff options
Diffstat (limited to 'system/rover/rover.SlackBuild')
-rw-r--r-- | system/rover/rover.SlackBuild | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/system/rover/rover.SlackBuild b/system/rover/rover.SlackBuild index d46ade4cc5503..fcecebd3f51f6 100644 --- a/system/rover/rover.SlackBuild +++ b/system/rover/rover.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for rover -# Copyright 2015 Hunter Sezen California, USA +# Copyright 2015-2016 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,13 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=rover -VERSION=${VERSION:-0.4.0} +VERSION=${VERSION:-0.4.2} 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 @@ -40,8 +40,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,7 +60,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -70,12 +70,16 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Allows using a custom config.h with rover -if [ "$(ls $CWD/config)" ]; then - for i in $(ls $CWD/config); do - cp -a $CWD/config/config.h config.h - done +if [ -f $CWD/config,h ]; then + cp -a $CWD/config.h config.h fi +# Fix pathname splitting when running external programs. +# Also escape single quotes inside shell argument. +# https://github.com/lecram/rover/commit/486a1459319a656b0b4b218c6451e629858d6060 +# https://github.com/lecram/rover/commit/21152dd558248363f497649e01611fccbb89f974 +zcat $CWD/pathname.diff.gz | patch -p1 + make CFLAGS="$SLKCFLAGS" make install \ PREFIX=/usr \ @@ -88,7 +92,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a CHANGES.md README.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a *.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |