wok-6.x view spectrwm/receipt @ rev 25405
made vim-tiny as tiny as possible
author | Hans-G?nter Theisgen |
---|---|
date | Wed Aug 03 15:11:06 2022 +0100 (2022-08-03) |
parents | 5ea0ce1cecc0 |
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 current_version()
25 {
26 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
27 sed '/archive.*tar/!d;s|.*/SPECTRWM_\(.*\).tar.*|\1|;s|_|.|g;q'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 cd linux
34 make PREFIX=/usr &&
35 make install \
36 PREFIX=/usr \
37 DESTDIR=$install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/etc
45 cp -a $install/* $fs
47 # copy configuration files (few more exist in $src)
48 cp $src/spectrwm.conf $fs/etc
49 cp $src/spectrwm_us.conf $fs/etc
51 # "switch on" keyboard mapping
52 sed -i 's|# keyboard_mapping.*|keyboard_mapping = /etc/spectrwm_us.conf|' \
53 $fs/etc/spectrwm.conf
55 # set bar_font
56 sed -i 's|# bar_font\t|bar_font\t|' \
57 $fs/etc/spectrwm.conf
58 }
60 post_install()
61 {
62 # Adding spectrwm to SLIM available sessions.
63 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
64 if ! echo "$res" | grep -q $PACKAGE
65 then
66 echo -n "Adding $PACKAGE to /etc/slim.conf..."
67 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \
68 "$1/etc/slim.conf"
69 status
70 fi
71 true
72 }
74 post_remove()
75 {
76 # Remove spectrwm from SLIM available sessions.
77 if grep -q $PACKAGE "$1/etc/slim.conf"
78 then
79 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
80 fi
81 }