wok view dwm/receipt @ rev 4053

Add: gnustep APIs (Free Software version of OpenStep)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Sep 09 21:48:33 2009 +0200 (2009-09-09)
parents 6a44a2d57a0f
children 74a6a43bf614
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://code.suckless.org/dl/dwm/$TARBALL"
11 DEPENDS="xorg-libX11 xorg-xsetroot"
12 BUILD_DEPENDS="xorg-libX11-dev xorg-xproto xorg-xineramaproto"
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 }