wok-current view dwm/receipt @ rev 15614

cairo-compmgr-core, jfsutils: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 08 08:06:26 2013 +0000 (2013-12-08)
parents 1726a7fd02b1
children 1a0b3262dccf
line source
1 # SliTaz package receipt.
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.suckless.org/dwm/"
11 WGET_URL="http://dl.suckless.org/dwm/$TARBALL"
12 TAGS="wm window-manager"
14 DEPENDS="xorg-libX11 xorg-xsetroot"
15 BUILD_DEPENDS="xorg-libX11-dev xorg-xproto xorg-xineramaproto \
16 xorg-libXinerama-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 # From blue to brown and have lighter grey
23 sed -i s/'#0066ff'/'#754800'/g config.def.h
24 sed -i s/'#cccccc'/'#f1efeb'/g config.def.h
25 # 6 tag-mask
26 sed -i s/', "7", "8", "9"'// config.def.h
27 # Firefox on current tag-mask
28 sed -i s/'1 << 8,'/'0, '/ config.def.h
29 # [Shift]+[Alt]+[Enter]
30 sed -i s/uxterm/xterm/ config.def.h
31 make
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin
38 cp -a $src/dwm $fs/usr/bin
39 cp -a $stuff/dwm-session $fs/usr/bin
40 cp -a $stuff/dwmbox $fs/usr/bin
41 chown 0.0 $fs/usr/bin/*
42 }
44 post_install()
45 {
46 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
47 # Adding WM to SLIM available sessions.
48 if ! echo "$res" | grep -q $PACKAGE; then
49 echo -n "Adding $PACKAGE to /etc/slim.conf..."
50 sed -i "s/^sessions.*/sessions ${res},dwm/" /etc/slim.conf
51 status
52 fi
53 }
55 post_remove()
56 {
57 # Remove karmen from SLIM available sessions.
58 if grep -q dwm $1/etc/slim.conf; then
59 sed -i s/,dwm// $1/etc/slim.conf
60 fi
61 }