diff options
Diffstat (limited to 'system/wmgtemp/wmgtemp.SlackBuild')
-rw-r--r-- | system/wmgtemp/wmgtemp.SlackBuild | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/system/wmgtemp/wmgtemp.SlackBuild b/system/wmgtemp/wmgtemp.SlackBuild index d48afc24a9..f8c546215f 100644 --- a/system/wmgtemp/wmgtemp.SlackBuild +++ b/system/wmgtemp/wmgtemp.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for wmgtemp # # Copyright 2015 Gethyn ThomasQuail <email removed> +# Copyright 2020 B. Watson <yalhcru@gmail.com> # All rights reserved. # # Based on: @@ -27,6 +28,7 @@ # Now maintained by B. Watson <yalhcru@gmail.com> +# 20200609 bkw: update for v1.2, add libdockapp dep # 20160816 bkw: # - take over maintenance # - BUILD=2 @@ -37,8 +39,8 @@ # - don't install INSTALL to doc dir PRGNAM=wmgtemp -VERSION=${VERSION:-1.1} -BUILD=${BUILD:-2} +VERSION=${VERSION:-1.2} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -77,21 +79,23 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ -patch -p1 < $CWD/bugfix.diff +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux -sed -i 's,/etc/sensors\.conf,/etc/sensors3.conf,' src/$PRGNAM.c $PRGNAM.1 - -make CCFLAGS="$SLKCFLAGS -fgnu89-inline" -mkdir -p $PKG/usr/bin -install -s -m0755 src/$PRGNAM $PKG/usr/bin -mkdir -p $PKG/usr/man/man1 -gzip -9c < $PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz +make +make install-strip DESTDIR=$PKG +gzip -9 $PKG/usr/man/man1/$PRGNAM.1 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a Artistic ChangeLog CREDITS README TODO $PKG/usr/doc/$PRGNAM-$VERSION |