diff options
Diffstat (limited to 'system/wmgtemp/wmgtemp.SlackBuild')
-rw-r--r-- | system/wmgtemp/wmgtemp.SlackBuild | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/system/wmgtemp/wmgtemp.SlackBuild b/system/wmgtemp/wmgtemp.SlackBuild index f8c546215f..063cb57317 100644 --- a/system/wmgtemp/wmgtemp.SlackBuild +++ b/system/wmgtemp/wmgtemp.SlackBuild @@ -1,9 +1,9 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for wmgtemp # # Copyright 2015 Gethyn ThomasQuail <email removed> -# Copyright 2020 B. Watson <yalhcru@gmail.com> +# Copyright 2020 B. Watson <urchlay@slackware.uk> # All rights reserved. # # Based on: @@ -26,9 +26,15 @@ # 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> +# Now maintained by B. Watson <urchlay@slackware.uk> + +# 20210809 bkw: minor fixes, BUILD=2 +# - manpage: fix typo, corrosponding => corresponding +# - manpage: remove BUGS section since it no longer applies +# - don't segfault if HOME not set in environment # 20200609 bkw: update for v1.2, add libdockapp dep + # 20160816 bkw: # - take over maintenance # - BUILD=2 @@ -38,10 +44,13 @@ # - default to the correct .conf for Slack's lm_sensors 3.x # - don't install INSTALL to doc dir +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=wmgtemp VERSION=${VERSION:-1.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -51,7 +60,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -82,6 +95,9 @@ chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ +# Various minor fixes by SlackBuild author +patch -p1 < $CWD/fixes.diff + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -105,4 +121,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |