diff options
author | Dave Woodfall <dave@tty1.uk> | 2019-03-06 02:27:01 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-03-16 06:51:54 +0700 |
commit | b505571f4576d85bd3dcd0fdf4c4110af4f47d71 (patch) | |
tree | c228ab2454af13d47fdd572fd335b2903a29e94f /desktop/dwm/dwm.SlackBuild | |
parent | 30aeaefb2f1666d069c8303abdc18c9cf048e484 (diff) |
desktop/dwm: Add optional system tray patch
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/dwm/dwm.SlackBuild')
-rw-r--r-- | desktop/dwm/dwm.SlackBuild | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/desktop/dwm/dwm.SlackBuild b/desktop/dwm/dwm.SlackBuild index 2ebba6fc1b4c2..deba50d3d32e6 100644 --- a/desktop/dwm/dwm.SlackBuild +++ b/desktop/dwm/dwm.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Slackware build script for dwm # -# Modofied by Dave Woodfall to use local config.h (2018) +# Modified by Dave Woodfall to use local config.h (2018) # Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org # Erik Falor <ewfalor@gmail.com> # @@ -36,7 +36,7 @@ PRGNAM=dwm VERSION=${VERSION:-6.1} -BUILD=${BUILD:-3} +BUILD=${BUILD:-4} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -66,7 +66,7 @@ else LIBDIRSUFFIX="" fi -set -e +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -76,11 +76,14 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION if [ -e "$CWD/config.h" ]; then - cp -v $CWD/config.h . -else - mv config.def.h config.h + cp -v $CWD/config.h config.def.h fi +SYSTRAY=${SYSTRAY:-no} +[ "$SYSTRAY" = "yes" ] && patch -p1 <$CWD/patches/dwm-6.1-systray.diff + +mv config.def.h config.h + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ |