wok-current diff spectrwm/receipt @ rev 25629
Mass updates for current
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Wed Oct 11 18:45:46 2023 +0000 (15 months ago) |
parents | 5ea0ce1cecc0 |
children |
line diff
1.1 --- a/spectrwm/receipt Tue Jun 08 08:46:05 2021 +0000 1.2 +++ b/spectrwm/receipt Wed Oct 11 18:45:46 2023 +0000 1.3 @@ -1,21 +1,23 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="spectrwm" 1.7 -VERSION="3.3.0" 1.8 +VERSION="3.4.1" 1.9 CATEGORY="x-window" 1.10 TAGS="tile window-manager" 1.11 SHORT_DESC="Small dynamic tiling window manager for X11." 1.12 MAINTAINER="al.bobylev@gmail.com" 1.13 -LICENSE="ISC MIT" 1.14 +LICENSE="ISC" 1.15 WEB_SITE="https://github.com/conformal/spectrwm" 1.16 1.17 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.18 WGET_URL="$WEB_SITE/archive/SPECTRWM_${VERSION//./_}.tar.gz" 1.19 1.20 -DEPENDS="xcb-util xcb-util-keysyms xcb-util-wm xorg-libXcursor xorg-libXft" 1.21 -BUILD_DEPENDS="cacerts xcb-util-dev xcb-util-keysyms-dev xcb-util-wm-dev 1.22 - xorg-libX11-dev xorg-libXcursor-dev xorg-libXft-dev 1.23 - xorg-libXrandr-dev xorg-libXt-dev" 1.24 +DEPENDS="dmenu freetype libxml2 xcb-util xcb-util-keysyms 1.25 + xcb-util-wm xlockmore xorg-libXcursor xorg-libXft" 1.26 +BUILD_DEPENDS="cacerts freetype-dev libxml2-dev xcb-util-dev 1.27 + xcb-util-keysyms-dev xcb-util-wm-dev xorg-libX11-dev 1.28 + xorg-libXcursor-dev xorg-libXft-dev xorg-libXrandr-dev 1.29 + xorg-libXt-dev" 1.30 1.31 CONFIG_FILES="/etc/spectrwm.conf" 1.32 1.33 @@ -28,9 +30,11 @@ 1.34 # Rules to configure and make the package. 1.35 compile_rules() 1.36 { 1.37 - cd linux 1.38 - make PREFIX=/usr && 1.39 - make install PREFIX=/usr DESTDIR=$install 1.40 + cd linux 1.41 + make PREFIX=/usr && 1.42 + make install \ 1.43 + PREFIX=/usr \ 1.44 + DESTDIR=$install 1.45 } 1.46 1.47 # Rules to gen a SliTaz package suitable for Tazpkg. 1.48 @@ -38,7 +42,7 @@ 1.49 { 1.50 mkdir -p $fs/etc 1.51 1.52 - cp -a $install/* $fs 1.53 + cp -a $install/* $fs 1.54 1.55 # copy configuration files (few more exist in $src) 1.56 cp $src/spectrwm.conf $fs/etc 1.57 @@ -46,5 +50,32 @@ 1.58 1.59 # "switch on" keyboard mapping 1.60 sed -i 's|# keyboard_mapping.*|keyboard_mapping = /etc/spectrwm_us.conf|' \ 1.61 - $fs/etc/spectrwm.conf 1.62 + $fs/etc/spectrwm.conf 1.63 + 1.64 + # set bar_font 1.65 + sed -i 's|# bar_font\t|bar_font\t|' \ 1.66 + $fs/etc/spectrwm.conf 1.67 } 1.68 + 1.69 +post_install() 1.70 +{ 1.71 + # Adding spectrwm to SLIM available sessions. 1.72 + res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) 1.73 + if ! echo "$res" | grep -q $PACKAGE 1.74 + then 1.75 + echo -n "Adding $PACKAGE to /etc/slim.conf..." 1.76 + sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \ 1.77 + "$1/etc/slim.conf" 1.78 + status 1.79 + fi 1.80 + true 1.81 +} 1.82 + 1.83 +post_remove() 1.84 +{ 1.85 + # Remove spectrwm from SLIM available sessions. 1.86 + if grep -q $PACKAGE "$1/etc/slim.conf" 1.87 + then 1.88 + sed -i s/,$PACKAGE// "$1/etc/slim.conf" 1.89 + fi 1.90 +}