aboutsummaryrefslogtreecommitdiff
path: root/desktop/dwm/dwm.SlackBuild
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2019-10-24 19:55:10 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-10-27 00:36:12 +0700
commit7b4d5973faf26925970bd22f27121491c09d88a5 (patch)
tree2dfe26e7749989368d91de74570784421ce0eccb /desktop/dwm/dwm.SlackBuild
parentc1003e47857974d98daafc7c54573d3aaab6c187 (diff)
desktop/dwm: Fix rofi theme. Add optional CK/dbus support.
Diffstat (limited to 'desktop/dwm/dwm.SlackBuild')
-rw-r--r--desktop/dwm/dwm.SlackBuild17
1 files changed, 12 insertions, 5 deletions
diff --git a/desktop/dwm/dwm.SlackBuild b/desktop/dwm/dwm.SlackBuild
index 06a0579171b61..4d74682d80490 100644
--- a/desktop/dwm/dwm.SlackBuild
+++ b/desktop/dwm/dwm.SlackBuild
@@ -37,7 +37,7 @@
PRGNAM=dwm
VERSION=${VERSION:-6.2}
-BUILD=${BUILD:-5}
+BUILD=${BUILD:-6}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -137,10 +137,13 @@ make install \
DESTDIR=$PKG
mkdir -p $PKG/etc/X11/xinit
-install -m 0755 $CWD/xinitrc.dwm $PKG/etc/X11/xinit/xinitrc.dwm
-if [ "$ROFI" = "yes" ]; then
- install -m 0644 -D $CWD/dwm.rasi.new $PKG/usr/share/rofi/themes/dwm.rasi.new
+CK=${CK:-no}
+
+if [ "$CK" = "yes" ]; then
+ install -v -m 0755 $CWD/xinitrc.dwm.ck $PKG/etc/X11/xinit/xinitrc.dwm
+else
+ install -v -m 0755 $CWD/xinitrc.dwm $PKG/etc/X11/xinit/xinitrc.dwm
fi
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
@@ -155,7 +158,11 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+if [ "$ROFI" = "yes" ]; then
+ install -v -m 0644 -D $CWD/dwm.rasi.new $PKG/usr/share/rofi/themes/dwm.rasi.new
+ cat $CWD/doinst.sh > $PKG/install/doinst.sh
+fi
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}