wok-current view dwm/receipt @ rev 7169

Fixed libpcap to install .so in /usr/lib instead of /usr.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Nov 07 19:10:16 2010 +0000 (2010-11-07)
parents 34840ccbb43e
children 59009b1c6878
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"
13 TAGS="wm window-manager"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 # From blue to brown and have lighter grey
20 sed -i s/'#0066ff'/'#754800'/g config.def.h
21 sed -i s/'#cccccc'/'#f1efeb'/g config.def.h
22 # 6 tag-mask
23 sed -i s/', "7", "8", "9"'// config.def.h
24 # Firefox on current tag-mask
25 sed -i s/'1 << 8,'/'0, '/ config.def.h
26 # [Shift]+[Alt]+[Enter]
27 sed -i s/uxterm/xterm/ config.def.h
28 make
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin
35 cp -a $src/dwm $fs/usr/bin
36 cp -a stuff/dwm-session $fs/usr/bin
37 cp -a stuff/dwmbox $fs/usr/bin
38 chown 0.0 $fs/usr/bin/*
39 }
41 post_install()
42 {
43 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
44 # Adding WM to SLIM available sessions.
45 if ! echo "$res" | grep -q $PACKAGE; then
46 echo -n "Adding $PACKAGE to /etc/slim.conf..."
47 sed -i "s/^sessions.*/sessions ${res},dwm/" /etc/slim.conf
48 status
49 fi
50 }
52 post_remove()
53 {
54 # Remove karmen from SLIM available sessions.
55 if grep -q dwm $1/etc/slim.conf; then
56 sed -i s/,dwm// $1/etc/slim.conf
57 fi
58 }