wok-next annotate dwm/receipt @ rev 21707

updated grooms (1.0.5 -> 1.0.9)
author Hans-G?nter Theisgen
date Mon Jul 06 15:15:04 2020 +0100 (2020-07-06)
parents 5669e8b3be70
children
rev   line source
al@20461 1 # SliTaz package receipt v2.
pankso@2378 2
pankso@2378 3 PACKAGE="dwm"
Hans-G?nter@21609 4 VERSION="6.2"
pankso@2378 5 CATEGORY="x-window"
Hans-G?nter@21609 6 TAGS="window-manager"
al@20461 7 SHORT_DESC="Very light dynamic window manager for X"
Hans-G?nter@21609 8 MAINTAINER="maintainer@slitaz.org"
pascal@15202 9 LICENSE="MIT"
Hans-G?nter@21609 10 WEB_SITE="https://dwm.suckless.org/"
al@20461 11
pankso@2378 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21609 13 WGET_URL="https://dl.suckless.org/dwm/$TARBALL"
pankso@9766 14
Hans-G?nter@21609 15 BUILD_DEPENDS="libx11-dev libxinerama-dev xorg-libXft-dev xorgproto"
pankso@2378 16
Hans-G?nter@21609 17 compile_rules()
Hans-G?nter@21609 18 {
pankso@16103 19 # From blue to grey and have lighter grey
pankso@16103 20 sed -i s/'#0066ff'/'#222222'/g config.def.h
pankso@2378 21 sed -i s/'#cccccc'/'#f1efeb'/g config.def.h
Hans-G?nter@21609 22
pankso@2378 23 # 6 tag-mask
pankso@2378 24 sed -i s/', "7", "8", "9"'// config.def.h
Hans-G?nter@21609 25
pankso@2378 26 # Firefox on current tag-mask
pankso@2378 27 sed -i s/'1 << 8,'/'0, '/ config.def.h
Hans-G?nter@21609 28
pankso@2378 29 # [Shift]+[Alt]+[Enter]
pankso@2378 30 sed -i s/uxterm/xterm/ config.def.h
Hans-G?nter@21609 31
al@20461 32 make CC=$HOST_SYSTEM-gcc || return 1
al@20461 33
al@20461 34 install -Dm755 $src/dwm $install/usr/bin/dwm
al@20461 35 install -Dm755 $stuff/dwm-session $install/usr/bin/dwm-session
pankso@2378 36 }
pankso@2378 37
Hans-G?nter@21609 38 genpkg_rules()
Hans-G?nter@21609 39 {
al@20461 40 copy @std
al@21078 41 DEPENDS="libx11 xsetroot"
pankso@2378 42 }
pankso@2378 43
al@20461 44 # Adding WM to SLIM available sessions.
Hans-G?nter@21609 45 post_install()
Hans-G?nter@21609 46 {
pascal@18730 47 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
Hans-G?nter@21609 48 if ! echo "$res" | grep -q $PACKAGE
Hans-G?nter@21609 49 then
al@20461 50 action "Adding $PACKAGE to /etc/slim.conf..."
Hans-G?nter@21609 51 sed -i "s/^sessions.*/sessions $res,dwm/" \
Hans-G?nter@21609 52 /etc/slim.conf
pankso@2378 53 status
pankso@2378 54 fi
pankso@2378 55 }
pankso@2378 56
al@20461 57 # Remove dwm from SLIM available sessions.
Hans-G?nter@21609 58 post_remove()
Hans-G?nter@21609 59 {
Hans-G?nter@21609 60 if grep -q dwm "$1/etc/slim.conf"
Hans-G?nter@21609 61 then
pascal@18730 62 sed -i s/,dwm// "$1/etc/slim.conf"
pankso@2378 63 fi
pankso@2378 64 }