summaryrefslogtreecommitdiff
path: root/system/thermal_daemon/thermal_daemon.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/thermal_daemon/thermal_daemon.SlackBuild')
-rw-r--r--system/thermal_daemon/thermal_daemon.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/system/thermal_daemon/thermal_daemon.SlackBuild b/system/thermal_daemon/thermal_daemon.SlackBuild
index 9ec834af3e..c77fbb1958 100644
--- a/system/thermal_daemon/thermal_daemon.SlackBuild
+++ b/system/thermal_daemon/thermal_daemon.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=thermal_daemon
-VERSION=${VERSION:-1.1}
+VERSION=${VERSION:-1.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,13 +54,17 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/v$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+if [ -e $CWD/"v"$VERSION.tar.gz ]; then
+ tar xvf $CWD/"v"$VERSION.tar.gz
+else
+ tar xvf $CWD/$PRGNAM-"v"$VERSION.tar.gz
+fi
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -94,7 +98,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- COPYING README.txt thermal_daemon_usage.txt \
+ COPYING README.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild