diff options
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 |
commit | 63569fa5d7a498f25d11abb004a014c1c7b02e43 (patch) | |
tree | c55aad56dd3b7cfd4851d62b3729ad762397dab7 /desktop/dwm/dwm.SlackBuild | |
parent | 32cc5fd30b60122edaf92042dd9e68f054ad91c1 (diff) | |
download | slackbuilds-63569fa5d7a498f25d11abb004a014c1c7b02e43.tar.gz |
desktop/dwm: Use local config.h.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/dwm/dwm.SlackBuild')
-rw-r--r-- | desktop/dwm/dwm.SlackBuild | 11 |
1 files changed, 9 insertions, 2 deletions
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 \ |