wok-next view dwm/receipt @ rev 21597
updated dosbox (0.74-2 -> 0.74.3)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 24 14:18:09 2020 +0100 (2020-06-24) |
parents | d5aab818505e |
children | 89f8a505844a |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="dwm"
4 VERSION="6.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Very light dynamic window manager for X"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://dwm.suckless.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://dl.suckless.org/dwm/$TARBALL"
14 BUILD_DEPENDS="libx11-dev xorgproto \
15 libxinerama-dev"
17 compile_rules() {
18 # From blue to grey and have lighter grey
19 sed -i s/'#0066ff'/'#222222'/g config.def.h
20 sed -i s/'#cccccc'/'#f1efeb'/g config.def.h
21 # 6 tag-mask
22 sed -i s/', "7", "8", "9"'// config.def.h
23 # Firefox on current tag-mask
24 sed -i s/'1 << 8,'/'0, '/ config.def.h
25 # [Shift]+[Alt]+[Enter]
26 sed -i s/uxterm/xterm/ config.def.h
27 make CC=$HOST_SYSTEM-gcc || return 1
29 install -Dm755 $src/dwm $install/usr/bin/dwm
30 install -Dm755 $stuff/dwm-session $install/usr/bin/dwm-session
31 }
33 genpkg_rules() {
34 copy @std
35 DEPENDS="libx11 xsetroot"
36 TAGS="window-manager"
37 }
39 # Adding WM to SLIM available sessions.
40 post_install() {
41 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
42 if ! echo "$res" | grep -q $PACKAGE; then
43 action "Adding $PACKAGE to /etc/slim.conf..."
44 sed -i "s/^sessions.*/sessions $res,dwm/" /etc/slim.conf
45 status
46 fi
47 }
49 # Remove dwm from SLIM available sessions.
50 post_remove() {
51 if grep -q dwm "$1/etc/slim.conf"; then
52 sed -i s/,dwm// "$1/etc/slim.conf"
53 fi
54 }