wok-current view dwm/receipt @ rev 2815
update libQtXml to 4.5.0
author | Allan Pinto <allan316@gmail.com> |
---|---|
date | Wed Apr 29 10:25:11 2009 +0000 (2009-04-29) |
parents | |
children | 34840ccbb43e |
line source
1 # SliTaz package receipt.
3 PACKAGE="dwm"
4 VERSION="5.4.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://code.suckless.org/dl/dwm/$TARBALL"
11 DEPENDS="xorg-libX11 xorg-xsetroot"
12 BUILD_DEPENDS="xorg-libX11-dev"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 # From blue to brown and have lighter grey
19 sed -i s/'#0066ff'/'#754800'/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
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin
34 cp -a $src/dwm $fs/usr/bin
35 cp -a stuff/dwm-session $fs/usr/bin
36 cp -a stuff/dwmbox $fs/usr/bin
37 chown 0.0 $fs/usr/bin/*
38 }
40 post_install()
41 {
42 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
43 # Adding WM to SLIM available sessions.
44 if ! echo "$res" | grep -q $PACKAGE; then
45 echo -n "Adding $PACKAGE to /etc/slim.conf..."
46 sed -i "s/^sessions.*/sessions ${res},dwm/" /etc/slim.conf
47 status
48 fi
49 }
51 post_remove()
52 {
53 # Remove karmen from SLIM available sessions.
54 if grep -q dwm $1/etc/slim.conf; then
55 sed -i s/,dwm// $1/etc/slim.conf
56 fi
57 }