wok view spectrwm/receipt @ rev 25707

Up perl-net-pcap (0.21), qtermwidget (0.5.1), youtube-dl-gui (0.3.8)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 05 14:08:34 2024 +0000 (3 months ago)
parents 64410514fac1
children
line source
1 # SliTaz package receipt.
3 PACKAGE="spectrwm"
4 VERSION="3.4.1"
5 CATEGORY="x-window"
6 TAGS="tile window-manager"
7 SHORT_DESC="Small dynamic tiling window manager for X11."
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="ISC"
10 WEB_SITE="https://github.com/conformal/spectrwm"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/archive/SPECTRWM_${VERSION//./_}.tar.gz"
15 DEPENDS="dmenu freetype libxml2 xcb-util xcb-util-keysyms
16 xcb-util-wm xlockmore xorg-libXcursor xorg-libXft"
17 BUILD_DEPENDS="cacerts freetype-dev libxml2-dev xcb-util-dev
18 xcb-util-keysyms-dev xcb-util-wm-dev xorg-libX11-dev
19 xorg-libXcursor-dev xorg-libXft-dev xorg-libXrandr-dev
20 xorg-libXt-dev"
22 CONFIG_FILES="/etc/spectrwm.conf"
24 # What is the latest version available today?
25 current_version()
26 {
27 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
28 sed '/tag\//!d;s|.*tag/[A-Z_]*||;s|".*||;s|_|.|g;q'
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 cd linux
35 make PREFIX=/usr &&
36 make install \
37 PREFIX=/usr \
38 DESTDIR=$install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/etc
46 cp -a $install/* $fs
48 # copy configuration files (few more exist in $src)
49 cp $src/spectrwm.conf $fs/etc
50 cp $src/spectrwm_us.conf $fs/etc
52 # "switch on" keyboard mapping
53 sed -i 's|# keyboard_mapping.*|keyboard_mapping = /etc/spectrwm_us.conf|' \
54 $fs/etc/spectrwm.conf
56 # set bar_font
57 sed -i 's|# bar_font\t|bar_font\t|' \
58 $fs/etc/spectrwm.conf
59 }
61 post_install()
62 {
63 # Adding spectrwm to SLIM available sessions.
64 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
65 if ! echo "$res" | grep -q $PACKAGE
66 then
67 echo -n "Adding $PACKAGE to /etc/slim.conf..."
68 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \
69 "$1/etc/slim.conf"
70 status
71 fi
72 true
73 }
75 post_remove()
76 {
77 # Remove spectrwm from SLIM available sessions.
78 if grep -q $PACKAGE "$1/etc/slim.conf"
79 then
80 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
81 fi
82 }