wok annotate spectrwm/receipt @ rev 24319

Add xsuspend
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jan 25 17:24:16 2022 +0000 (2022-01-25)
parents d60b622059e2
children 64410514fac1
rev   line source
al@18177 1 # SliTaz package receipt.
al@18177 2
al@18177 3 PACKAGE="spectrwm"
Hans-G?nter@23661 4 VERSION="3.3.0"
al@18177 5 CATEGORY="x-window"
Hans-G?nter@21936 6 TAGS="tile window-manager"
Hans-G?nter@21936 7 SHORT_DESC="Small dynamic tiling window manager for X11."
al@18177 8 MAINTAINER="al.bobylev@gmail.com"
al@18177 9 LICENSE="ISC MIT"
pascal@20679 10 WEB_SITE="https://github.com/conformal/spectrwm"
Hans-G?nter@21936 11
Hans-G?nter@21936 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21936 13 WGET_URL="$WEB_SITE/archive/SPECTRWM_${VERSION//./_}.tar.gz"
al@18177 14
al@18177 15 DEPENDS="xcb-util xcb-util-keysyms xcb-util-wm xorg-libXcursor xorg-libXft"
Hans-G?nter@23661 16 BUILD_DEPENDS="cacerts xcb-util-dev xcb-util-keysyms-dev xcb-util-wm-dev
Hans-G?nter@23661 17 xorg-libX11-dev xorg-libXcursor-dev xorg-libXft-dev
Hans-G?nter@23661 18 xorg-libXrandr-dev xorg-libXt-dev"
Hans-G?nter@21936 19
Hans-G?nter@21936 20 CONFIG_FILES="/etc/spectrwm.conf"
al@18177 21
pascal@24055 22 current_version()
pascal@24055 23 {
pascal@24055 24 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 25 sed '/archive.*tar/!d;s|.*/SPECTRWM_\(.*\).tar.*|\1|;s|_|.|g;q'
pascal@24055 26 }
pascal@24055 27
al@18177 28 # Rules to configure and make the package.
al@18177 29 compile_rules()
al@18177 30 {
al@18177 31 cd linux
Hans-G?nter@21936 32 make PREFIX=/usr &&
Hans-G?nter@21936 33 make install PREFIX=/usr DESTDIR=$install
al@18177 34 }
al@18177 35
al@18177 36 # Rules to gen a SliTaz package suitable for Tazpkg.
al@18177 37 genpkg_rules()
al@18177 38 {
al@18177 39 mkdir -p $fs/etc
Hans-G?nter@21936 40
Hans-G?nter@23661 41 cp -a $install/* $fs
Hans-G?nter@23661 42
Hans-G?nter@23661 43 # copy configuration files (few more exist in $src)
Hans-G?nter@23661 44 cp $src/spectrwm.conf $fs/etc
Hans-G?nter@23661 45 cp $src/spectrwm_us.conf $fs/etc
Hans-G?nter@21936 46
al@18177 47 # "switch on" keyboard mapping
al@18177 48 sed -i 's|# keyboard_mapping.*|keyboard_mapping = /etc/spectrwm_us.conf|' \
al@18177 49 $fs/etc/spectrwm.conf
al@18177 50 }