diff options
Diffstat (limited to 'system/thermald/thermald.SlackBuild')
-rw-r--r-- | system/thermald/thermald.SlackBuild | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/system/thermald/thermald.SlackBuild b/system/thermald/thermald.SlackBuild index a12ea9a03c..afba0a4163 100644 --- a/system/thermald/thermald.SlackBuild +++ b/system/thermald/thermald.SlackBuild @@ -1,9 +1,9 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for thermald # Copyright 2017 Aaditya Bagga <aaditya_gnulinux@zoho.com> -# Copyright 2017-2018 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2017-2024 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,11 +23,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=thermald SRCNAM=thermal_daemon -VERSION=${VERSION:-1.9} -BUILD=${BUILD:-2} +VERSION=${VERSION:-2.5.7} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -37,7 +40,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} @@ -106,4 +113,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh 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 |