diff options
author | Dave Woodfall <dave@slackbuilds.org> | 2022-06-09 09:31:57 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-06-11 08:59:02 +0700 |
commit | 5b8a1ec561c503c671ace68ac7bc0355a58334be (patch) | |
tree | 7b9ca6e8384d3b6d8a83e682682b2b09144dbb82 /desktop/dwm/dwm.SlackBuild | |
parent | fe108c533acfe49ef16ab9130350c12fc12f617f (diff) |
desktop/dwm: Updated for version 6.3. Update patches and README.
All options now default to 'no'.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/dwm/dwm.SlackBuild')
-rw-r--r-- | desktop/dwm/dwm.SlackBuild | 59 |
1 files changed, 22 insertions, 37 deletions
diff --git a/desktop/dwm/dwm.SlackBuild b/desktop/dwm/dwm.SlackBuild index 8c7d3927469d5..f399fdd6098a8 100644 --- a/desktop/dwm/dwm.SlackBuild +++ b/desktop/dwm/dwm.SlackBuild @@ -38,8 +38,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=dwm -VERSION=${VERSION:-6.2} -BUILD=${BUILD:-6} +VERSION=${VERSION:-6.3} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -90,17 +90,23 @@ if [ -e "$CWD/config.h" ]; then cp -v $CWD/config.h config.def.h fi -SYSTRAY=${SYSTRAY:-no} -[ "$SYSTRAY" = "yes" ] && patch -p1 <$CWD/sbo-patches/dwm-systray-20190208-cb3f58a.diff +[ "${CK:-no}" = "yes" ] && RCEXT=".ck" +[ "${SYSTRAY:-no}" = "yes" ] && patch -p1 <$CWD/sbo-patches/dwm-systray-6.3.diff +[ "${MOD4:-no}" = "yes" ] && patch -p1 <$CWD/sbo-patches/use-mod4.patch +[ "${ROFI:-no}" = "yes" ] && patch -p1 <$CWD/sbo-patches/replace-dmenu-rofi.patch +[ "${KEYPAD:-no}" = "yes" ] && patch -p0 <$CWD/sbo-patches/enable-keypad.patch -MOD4=${MOD4:-no} -[ "$MOD4" = "yes" ] && patch -p1 <$CWD/sbo-patches/use-mod4.patch - -ROFI=${ROFI:-no} -[ "$ROFI" = "yes" ] && patch -p1 <$CWD/sbo-patches/replace-dmenu-rofi.patch +### Per community request, this section has been restored +### for those that wish to include custom patches. +### A sample patch is included in the patches/ directory +### that will change the default terminal from 'st' +### to 'uxterm'. -Ryan -KEYPAD=${KEYPAD:-no} -[ "$KEYPAD" = "yes" ] && patch -p0 <$CWD/sbo-patches/enable-keypad.patch +if [ "${PATCHES:-no}" = "yes" ]; then + for p in $CWD/patches/*; do + patch --verbose -p1 < $p + done +fi mv config.def.h config.h @@ -111,16 +117,6 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -### Per community request, this section has been restored -### for those that wish to include custom patches. -### A sample patch is included in the patches/ directory -### that will change the default terminal from 'st' -### to 'uxterm'. -Ryan -# -#for i in $(ls $CWD/patches); do -# patch -p0 < $CWD/patches/$i -#done - ## Fix options for our compilers, ## thanks to Brenton Earl. sed -i \ @@ -143,20 +139,9 @@ make install \ X11LIB=/usr/lib${LIBDIRSUFFIX}/X11 \ DESTDIR=$PKG -mkdir -p $PKG/etc/X11/xinit - -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 \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -find $PKG/usr/man -type f -exec gzip -9 {} \; +install -vDm 0755 $CWD/xinitrc.dwm$RCEXT $PKG/etc/X11/xinit/xinitrc.dwm +strip --strip-unneeded $PKG/usr/bin/$PRGNAM +gzip -9 $PKG/usr/man/man?/*.? mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a LICENSE README $CWD/README.CONFIG \ @@ -166,8 +151,8 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -if [ "$ROFI" = "yes" ]; then - install -v -m 0644 -D $CWD/dwm.rasi.new $PKG/usr/share/rofi/themes/dwm.rasi.new +if [ "${ROFI:-no}" = "yes" ]; then + install -vD -m 0644 $CWD/dwm.rasi.new -t $PKG/usr/share/rofi/themes cat $CWD/doinst.sh > $PKG/install/doinst.sh fi |