wok-current view dwm/receipt @ rev 12036

Fix stella again, thanks godane
author Antoine Bodin <gokhlayeh@slitaz.org>
date Wed Mar 07 05:49:39 2012 +0100 (2012-03-07)
parents 59009b1c6878
children 1726a7fd02b1
line source
1 # SliTaz package receipt.
3 PACKAGE="dwm"
4 VERSION="5.6.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Very light dynamic window manager for X."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.suckless.org/dwm/"
10 WGET_URL="http://dl.suckless.org/dwm/$TARBALL"
11 TAGS="wm window-manager"
13 DEPENDS="xorg-libX11 xorg-xsetroot"
14 BUILD_DEPENDS="xorg-libX11-dev xorg-xproto xorg-xineramaproto \
15 xorg-libXinerama-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 # From blue to brown and have lighter grey
22 sed -i s/'#0066ff'/'#754800'/g config.def.h
23 sed -i s/'#cccccc'/'#f1efeb'/g config.def.h
24 # 6 tag-mask
25 sed -i s/', "7", "8", "9"'// config.def.h
26 # Firefox on current tag-mask
27 sed -i s/'1 << 8,'/'0, '/ config.def.h
28 # [Shift]+[Alt]+[Enter]
29 sed -i s/uxterm/xterm/ config.def.h
30 make
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/bin
37 cp -a $src/dwm $fs/usr/bin
38 cp -a $stuff/dwm-session $fs/usr/bin
39 cp -a $stuff/dwmbox $fs/usr/bin
40 chown 0.0 $fs/usr/bin/*
41 }
43 post_install()
44 {
45 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
46 # Adding WM to SLIM available sessions.
47 if ! echo "$res" | grep -q $PACKAGE; then
48 echo -n "Adding $PACKAGE to /etc/slim.conf..."
49 sed -i "s/^sessions.*/sessions ${res},dwm/" /etc/slim.conf
50 status
51 fi
52 }
54 post_remove()
55 {
56 # Remove karmen from SLIM available sessions.
57 if grep -q dwm $1/etc/slim.conf; then
58 sed -i s/,dwm// $1/etc/slim.conf
59 fi
60 }