diff options
author | B. Watson <yalhcru@gmail.com> | 2020-06-13 05:05:46 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-06-14 17:45:43 +0700 |
commit | 60e4bf35a215f1100742a5f54f4765ad230952a6 (patch) | |
tree | 87b2978f9e0fcd526309c71893ebed7e9396903e /desktop/wmsupermon/wmsupermon.SlackBuild | |
parent | 471accae93a44972ba59a9e04623370a29b8165a (diff) |
desktop/wmsupermon: Added (monitoring dockapp for WindowMaker)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/wmsupermon/wmsupermon.SlackBuild')
-rw-r--r-- | desktop/wmsupermon/wmsupermon.SlackBuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/desktop/wmsupermon/wmsupermon.SlackBuild b/desktop/wmsupermon/wmsupermon.SlackBuild new file mode 100644 index 0000000000000..8acb0d272dae7 --- /dev/null +++ b/desktop/wmsupermon/wmsupermon.SlackBuild @@ -0,0 +1,78 @@ +#!/bin/sh + +# Slackware build script for wmsupermon + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +PRGNAM=wmsupermon +VERSION=${VERSION:-1.2.2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +# top-level dir doesn't match tarball filename, so: +mkdir -p $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd */ +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 {} \+ + +# adjust the sensor path in the example config file. +patch -p1 < $CWD/exampleconfig.diff + +# fix the config filename in the README, this caused me some grief. +sed -i 's,~/\.wmsupermon,&rc,' README + +make FLAGS="$SLKCFLAGS" +mkdir -p $PKG/usr/bin +install -s -m0755 -oroot -groot $PRGNAM $PKG/usr/bin + +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a example-wmsupermonrc COPYING ChangeLog README TODO $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild + +# include a simpler example config file, which I actually use. +install -oroot -groot -m0644 $CWD/example-wmsupermonrc-cputemponly $PKGDOC + +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} |