diff options
author | B. Watson <yalhcru@gmail.com> | 2016-08-16 08:48:11 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-08-20 07:50:03 +0700 |
commit | e517e6e1f8b2994eb00abaed4d6d6bb02582ee4c (patch) | |
tree | 568c2cdb0b1900a75fc40e08a21116a3de43c2a4 /system/wmgtemp/wmgtemp.SlackBuild | |
parent | e63ab9ad48e4110b5da528e02ec57850d7a003bc (diff) | |
download | slackbuilds-e517e6e1f8b2994eb00abaed4d6d6bb02582ee4c.tar.gz |
system/wmgtemp: New maintainer, minor fixes.
Diffstat (limited to 'system/wmgtemp/wmgtemp.SlackBuild')
-rw-r--r-- | system/wmgtemp/wmgtemp.SlackBuild | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/system/wmgtemp/wmgtemp.SlackBuild b/system/wmgtemp/wmgtemp.SlackBuild index dc24f082c5..d48afc24a9 100644 --- a/system/wmgtemp/wmgtemp.SlackBuild +++ b/system/wmgtemp/wmgtemp.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for wmgtemp # -# Copyright 2015 Gethyn ThomasQuail <gethyn@bloodbathsoftworks.com> +# Copyright 2015 Gethyn ThomasQuail <email removed> # All rights reserved. # # Based on: @@ -25,14 +25,25 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Now maintained by B. Watson <yalhcru@gmail.com> + +# 20160816 bkw: +# - take over maintenance +# - BUILD=2 +# - i486 => i586 +# - install binary stripped +# - fix array out of bounds bug +# - default to the correct .conf for Slack's lm_sensors 3.x +# - don't install INSTALL to doc dir + PRGNAM=wmgtemp VERSION=${VERSION:-1.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} 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 @@ -43,8 +54,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" @@ -72,22 +83,18 @@ 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 {} \; -# Let's compile! -make CC="gcc -fgnu89-inline $SLKCFLAGS" +patch -p1 < $CWD/bugfix.diff -# Create bin directory and move executable there -mkdir -p $PKG/usr/bin -mv src/wmgtemp $PKG/usr/bin +sed -i 's,/etc/sensors\.conf,/etc/sensors3.conf,' src/$PRGNAM.c $PRGNAM.1 -# Creates man page directory +make CCFLAGS="$SLKCFLAGS -fgnu89-inline" +mkdir -p $PKG/usr/bin +install -s -m0755 src/$PRGNAM $PKG/usr/bin mkdir -p $PKG/usr/man/man1 - -# Compresses man page and moves it into place -gzip -9 wmgtemp.1 -mv wmgtemp.1.gz $PKG/usr/man/man1 +gzip -9c < $PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a Artistic ChangeLog CREDITS INSTALL README TODO $PKG/usr/doc/$PRGNAM-$VERSION +cp -a Artistic ChangeLog CREDITS README TODO $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |