wok-6.x rev 25318
updated spectrwm (3.3.0 -> 3.4.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 22 06:40:14 2022 +0100 (2022-07-22) |
parents | db95e4ba6e65 |
children | 8ba543afd58c |
files | spectrwm/description.txt spectrwm/receipt |
line diff
1.1 --- a/spectrwm/description.txt Thu Jul 21 07:14:01 2022 +0100 1.2 +++ b/spectrwm/description.txt Fri Jul 22 06:40:14 2022 +0100 1.3 @@ -1,5 +1,7 @@ 1.4 -spectrwm is a small dynamic tiling window manager for X11. It tries to stay out 1.5 -of the way so that valuable screen real estate can be used for much more 1.6 -important stuff. It has sane defaults and does not require one to learn 1.7 -a language to do any configuration. It was written by hackers for hackers and it 1.8 -strives to be small, compact and fast. 1.9 +Spectrwm is a small dynamic tiling window manager for X11. 1.10 +It tries to stay out of the way so that valuable screen 1.11 +real estate can be used for much more important stuff. 1.12 +It has sane defaults and does not require one to learn a 1.13 +language to do any configuration. 1.14 +It was written by hackers for hackers and it strives to be 1.15 +small, compact and fast.
2.1 --- a/spectrwm/receipt Thu Jul 21 07:14:01 2022 +0100 2.2 +++ b/spectrwm/receipt Fri Jul 22 06:40:14 2022 +0100 2.3 @@ -1,21 +1,23 @@ 2.4 # SliTaz package receipt. 2.5 2.6 PACKAGE="spectrwm" 2.7 -VERSION="3.3.0" 2.8 +VERSION="3.4.1" 2.9 CATEGORY="x-window" 2.10 TAGS="tile window-manager" 2.11 SHORT_DESC="Small dynamic tiling window manager for X11." 2.12 MAINTAINER="al.bobylev@gmail.com" 2.13 -LICENSE="ISC MIT" 2.14 +LICENSE="ISC" 2.15 WEB_SITE="https://github.com/conformal/spectrwm" 2.16 2.17 TARBALL="$PACKAGE-$VERSION.tar.gz" 2.18 WGET_URL="$WEB_SITE/archive/SPECTRWM_${VERSION//./_}.tar.gz" 2.19 2.20 -DEPENDS="xcb-util xcb-util-keysyms xcb-util-wm xorg-libXcursor xorg-libXft" 2.21 -BUILD_DEPENDS="cacerts xcb-util-dev xcb-util-keysyms-dev xcb-util-wm-dev 2.22 - xorg-libX11-dev xorg-libXcursor-dev xorg-libXft-dev 2.23 - xorg-libXrandr-dev xorg-libXt-dev" 2.24 +DEPENDS="dmenu freetype libxml2 xcb-util xcb-util-keysyms 2.25 + xcb-util-wm xlockmore xorg-libXcursor xorg-libXft" 2.26 +BUILD_DEPENDS="cacerts freetype-dev libxml2-dev xcb-util-dev 2.27 + xcb-util-keysyms-dev xcb-util-wm-dev xorg-libX11-dev 2.28 + xorg-libXcursor-dev xorg-libXft-dev xorg-libXrandr-dev 2.29 + xorg-libXt-dev" 2.30 2.31 CONFIG_FILES="/etc/spectrwm.conf" 2.32 2.33 @@ -28,9 +30,11 @@ 2.34 # Rules to configure and make the package. 2.35 compile_rules() 2.36 { 2.37 - cd linux 2.38 - make PREFIX=/usr && 2.39 - make install PREFIX=/usr DESTDIR=$install 2.40 + cd linux 2.41 + make PREFIX=/usr && 2.42 + make install \ 2.43 + PREFIX=/usr \ 2.44 + DESTDIR=$install 2.45 } 2.46 2.47 # Rules to gen a SliTaz package suitable for Tazpkg. 2.48 @@ -38,7 +42,7 @@ 2.49 { 2.50 mkdir -p $fs/etc 2.51 2.52 - cp -a $install/* $fs 2.53 + cp -a $install/* $fs 2.54 2.55 # copy configuration files (few more exist in $src) 2.56 cp $src/spectrwm.conf $fs/etc 2.57 @@ -46,5 +50,32 @@ 2.58 2.59 # "switch on" keyboard mapping 2.60 sed -i 's|# keyboard_mapping.*|keyboard_mapping = /etc/spectrwm_us.conf|' \ 2.61 - $fs/etc/spectrwm.conf 2.62 + $fs/etc/spectrwm.conf 2.63 + 2.64 + # set bar_font 2.65 + sed -i 's|# bar_font\t|bar_font\t|' \ 2.66 + $fs/etc/spectrwm.conf 2.67 } 2.68 + 2.69 +post_install() 2.70 +{ 2.71 + # Adding spectrwm to SLIM available sessions. 2.72 + res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) 2.73 + if ! echo "$res" | grep -q $PACKAGE 2.74 + then 2.75 + echo -n "Adding $PACKAGE to /etc/slim.conf..." 2.76 + sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \ 2.77 + "$1/etc/slim.conf" 2.78 + status 2.79 + fi 2.80 + true 2.81 +} 2.82 + 2.83 +post_remove() 2.84 +{ 2.85 + # Remove spectrwm from SLIM available sessions. 2.86 + if grep -q $PACKAGE "$1/etc/slim.conf" 2.87 + then 2.88 + sed -i s/,$PACKAGE// "$1/etc/slim.conf" 2.89 + fi 2.90 +}