# HG changeset patch # User Hans-G?nter Theisgen # Date 1658468414 -3600 # Node ID 64410514fac10c52b461ce337639fa92cc176a79 # Parent db95e4ba6e6501748115f907a5b69ae61d5f7cbb updated spectrwm (3.3.0 -> 3.4.1) diff -r db95e4ba6e65 -r 64410514fac1 spectrwm/description.txt --- a/spectrwm/description.txt Thu Jul 21 07:14:01 2022 +0100 +++ b/spectrwm/description.txt Fri Jul 22 06:40:14 2022 +0100 @@ -1,5 +1,7 @@ -spectrwm is a small dynamic tiling window manager for X11. It tries to stay out -of the way so that valuable screen real estate can be used for much more -important stuff. It has sane defaults and does not require one to learn -a language to do any configuration. It was written by hackers for hackers and it -strives to be small, compact and fast. +Spectrwm is a small dynamic tiling window manager for X11. +It tries to stay out of the way so that valuable screen +real estate can be used for much more important stuff. +It has sane defaults and does not require one to learn a +language to do any configuration. +It was written by hackers for hackers and it strives to be +small, compact and fast. diff -r db95e4ba6e65 -r 64410514fac1 spectrwm/receipt --- a/spectrwm/receipt Thu Jul 21 07:14:01 2022 +0100 +++ b/spectrwm/receipt Fri Jul 22 06:40:14 2022 +0100 @@ -1,21 +1,23 @@ # SliTaz package receipt. PACKAGE="spectrwm" -VERSION="3.3.0" +VERSION="3.4.1" CATEGORY="x-window" TAGS="tile window-manager" SHORT_DESC="Small dynamic tiling window manager for X11." MAINTAINER="al.bobylev@gmail.com" -LICENSE="ISC MIT" +LICENSE="ISC" WEB_SITE="https://github.com/conformal/spectrwm" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$WEB_SITE/archive/SPECTRWM_${VERSION//./_}.tar.gz" -DEPENDS="xcb-util xcb-util-keysyms xcb-util-wm xorg-libXcursor xorg-libXft" -BUILD_DEPENDS="cacerts xcb-util-dev xcb-util-keysyms-dev xcb-util-wm-dev - xorg-libX11-dev xorg-libXcursor-dev xorg-libXft-dev - xorg-libXrandr-dev xorg-libXt-dev" +DEPENDS="dmenu freetype libxml2 xcb-util xcb-util-keysyms + xcb-util-wm xlockmore xorg-libXcursor xorg-libXft" +BUILD_DEPENDS="cacerts freetype-dev libxml2-dev xcb-util-dev + xcb-util-keysyms-dev xcb-util-wm-dev xorg-libX11-dev + xorg-libXcursor-dev xorg-libXft-dev xorg-libXrandr-dev + xorg-libXt-dev" CONFIG_FILES="/etc/spectrwm.conf" @@ -28,9 +30,11 @@ # Rules to configure and make the package. compile_rules() { - cd linux - make PREFIX=/usr && - make install PREFIX=/usr DESTDIR=$install + cd linux + make PREFIX=/usr && + make install \ + PREFIX=/usr \ + DESTDIR=$install } # Rules to gen a SliTaz package suitable for Tazpkg. @@ -38,7 +42,7 @@ { mkdir -p $fs/etc - cp -a $install/* $fs + cp -a $install/* $fs # copy configuration files (few more exist in $src) cp $src/spectrwm.conf $fs/etc @@ -46,5 +50,32 @@ # "switch on" keyboard mapping sed -i 's|# keyboard_mapping.*|keyboard_mapping = /etc/spectrwm_us.conf|' \ - $fs/etc/spectrwm.conf + $fs/etc/spectrwm.conf + + # set bar_font + sed -i 's|# bar_font\t|bar_font\t|' \ + $fs/etc/spectrwm.conf } + +post_install() +{ + # Adding spectrwm to SLIM available sessions. + res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) + if ! echo "$res" | grep -q $PACKAGE + then + echo -n "Adding $PACKAGE to /etc/slim.conf..." + sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \ + "$1/etc/slim.conf" + status + fi + true +} + +post_remove() +{ + # Remove spectrwm from SLIM available sessions. + if grep -q $PACKAGE "$1/etc/slim.conf" + then + sed -i s/,$PACKAGE// "$1/etc/slim.conf" + fi +}