wok-next view dwm/receipt @ rev 20859
Update ALSA stack (1.1.6)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 27 13:35:43 2018 +0300 (2018-06-27) |
parents | c4e53a39395a |
children | f99935f1778a |
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="pankso@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="xorg-libX11-dev xorg-xproto xorg-xineramaproto \
15 xorg-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="xorg-libX11 xorg-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 }