summaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
author Dave Woodfall <dave@tty1.uk>2018-11-29 06:35:19 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2018-11-29 06:35:19 +0700
commit63569fa5d7a498f25d11abb004a014c1c7b02e43 (patch)
treec55aad56dd3b7cfd4851d62b3729ad762397dab7 /desktop
parent32cc5fd30b60122edaf92042dd9e68f054ad91c1 (diff)
downloadslackbuilds-63569fa5d7a498f25d11abb004a014c1c7b02e43.tar.gz
slackbuilds-63569fa5d7a498f25d11abb004a014c1c7b02e43.tar.xz
desktop/dwm: Use local config.h.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/dwm/README18
-rw-r--r--desktop/dwm/dwm.SlackBuild11
-rw-r--r--desktop/dwm/dwm.info4
3 files changed, 23 insertions, 10 deletions
diff --git a/desktop/dwm/README b/desktop/dwm/README
index 77a1a928c2..bfe98c1ada 100644
--- a/desktop/dwm/README
+++ b/desktop/dwm/README
@@ -1,11 +1,17 @@
-dwm is a dynamic window manager for X. It manages windows in tiled and
-floating layouts. Either layout can be applied dynamically, optimizing
-the environment for the application in use and the task performed. It
-is the little brother of wmii.
+dwm is a dynamic window manager for X. It manages windows in
+tiled and floating layouts. Either layout can be applied
+dynamically, optimizing the environment for the application
+in use and the task performed. It is the little brother of
+wmii.
-As of 6.1, `st` is the default terminal. This does not require
-installing `st`, only symlinking your favorite terminal to:
+As of 6.1, `st` is the default terminal. This does not
+require installing `st`, only symlinking your favorite
+terminal to:
/usr/local/bin/st
+If a config.h is found in the SlackBuild directory it will
+be copied to the source directory and used in the build,
+allowing easy customisation.
+
See README.CONFIG for more information.
diff --git a/desktop/dwm/dwm.SlackBuild b/desktop/dwm/dwm.SlackBuild
index 9d3d588256..2ebba6fc1b 100644
--- a/desktop/dwm/dwm.SlackBuild
+++ b/desktop/dwm/dwm.SlackBuild
@@ -1,6 +1,7 @@
#!/bin/sh
# Slackware build script for dwm
#
+# Modofied by Dave Woodfall to use local config.h (2018)
# Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org
# Erik Falor <ewfalor@gmail.com>
#
@@ -35,7 +36,7 @@
PRGNAM=dwm
VERSION=${VERSION:-6.1}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -73,7 +74,13 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
-mv config.def.h config.h
+
+if [ -e "$CWD/config.h" ]; then
+ cp -v $CWD/config.h .
+else
+ mv config.def.h config.h
+fi
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
diff --git a/desktop/dwm/dwm.info b/desktop/dwm/dwm.info
index 34bc8a3cf8..fed933c120 100644
--- a/desktop/dwm/dwm.info
+++ b/desktop/dwm/dwm.info
@@ -6,5 +6,5 @@ MD5SUM="f0b6b1093b7207f89c2a90b848c008ec"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Erik Falor"
-EMAIL="ewfalor@gmail.com"
+MAINTAINER="Dave Woodfall"
+EMAIL="dave@tty1.uk"