wok-next rev 21609
updated dwm (6.0 -> 6.2)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 25 09:57:14 2020 +0100 (2020-06-25) |
parents | d4781ca5cb49 |
children | 465be5ff8599 |
files | dwm/receipt |
line diff
1.1 --- a/dwm/receipt Thu Jun 25 09:49:25 2020 +0100 1.2 +++ b/dwm/receipt Thu Jun 25 09:57:14 2020 +0100 1.3 @@ -1,54 +1,64 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 PACKAGE="dwm" 1.7 -VERSION="6.0" 1.8 +VERSION="6.2" 1.9 CATEGORY="x-window" 1.10 +TAGS="window-manager" 1.11 SHORT_DESC="Very light dynamic window manager for X" 1.12 -MAINTAINER="devel@slitaz.org" 1.13 +MAINTAINER="maintainer@slitaz.org" 1.14 LICENSE="MIT" 1.15 -WEB_SITE="http://dwm.suckless.org/" 1.16 +WEB_SITE="https://dwm.suckless.org/" 1.17 1.18 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.19 -WGET_URL="http://dl.suckless.org/dwm/$TARBALL" 1.20 +WGET_URL="https://dl.suckless.org/dwm/$TARBALL" 1.21 1.22 -BUILD_DEPENDS="libx11-dev xorgproto \ 1.23 -libxinerama-dev" 1.24 +BUILD_DEPENDS="libx11-dev libxinerama-dev xorg-libXft-dev xorgproto" 1.25 1.26 -compile_rules() { 1.27 +compile_rules() 1.28 +{ 1.29 # From blue to grey and have lighter grey 1.30 sed -i s/'#0066ff'/'#222222'/g config.def.h 1.31 sed -i s/'#cccccc'/'#f1efeb'/g config.def.h 1.32 + 1.33 # 6 tag-mask 1.34 sed -i s/', "7", "8", "9"'// config.def.h 1.35 + 1.36 # Firefox on current tag-mask 1.37 sed -i s/'1 << 8,'/'0, '/ config.def.h 1.38 + 1.39 # [Shift]+[Alt]+[Enter] 1.40 sed -i s/uxterm/xterm/ config.def.h 1.41 + 1.42 make CC=$HOST_SYSTEM-gcc || return 1 1.43 1.44 install -Dm755 $src/dwm $install/usr/bin/dwm 1.45 install -Dm755 $stuff/dwm-session $install/usr/bin/dwm-session 1.46 } 1.47 1.48 -genpkg_rules() { 1.49 +genpkg_rules() 1.50 +{ 1.51 copy @std 1.52 DEPENDS="libx11 xsetroot" 1.53 - TAGS="window-manager" 1.54 } 1.55 1.56 # Adding WM to SLIM available sessions. 1.57 -post_install() { 1.58 +post_install() 1.59 +{ 1.60 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) 1.61 - if ! echo "$res" | grep -q $PACKAGE; then 1.62 + if ! echo "$res" | grep -q $PACKAGE 1.63 + then 1.64 action "Adding $PACKAGE to /etc/slim.conf..." 1.65 - sed -i "s/^sessions.*/sessions $res,dwm/" /etc/slim.conf 1.66 + sed -i "s/^sessions.*/sessions $res,dwm/" \ 1.67 + /etc/slim.conf 1.68 status 1.69 fi 1.70 } 1.71 1.72 # Remove dwm from SLIM available sessions. 1.73 -post_remove() { 1.74 - if grep -q dwm "$1/etc/slim.conf"; then 1.75 +post_remove() 1.76 +{ 1.77 + if grep -q dwm "$1/etc/slim.conf" 1.78 + then 1.79 sed -i s/,dwm// "$1/etc/slim.conf" 1.80 fi 1.81 }