wok annotate dwm/receipt @ rev 7478
Up: freetype to 2.4.4.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Dec 02 00:38:37 2010 +0000 (2010-12-02) |
parents | 34840ccbb43e |
children | 59009b1c6878 |
rev | line source |
---|---|
pankso@2378 | 1 # SliTaz package receipt. |
pankso@2378 | 2 |
pankso@2378 | 3 PACKAGE="dwm" |
paul@4031 | 4 VERSION="5.6.1" |
pankso@2378 | 5 CATEGORY="x-window" |
pankso@2378 | 6 SHORT_DESC="Very light dynamic window manager for X." |
pankso@2378 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@2378 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@2378 | 9 WEB_SITE="http://www.suckless.org/dwm/" |
pankso@2378 | 10 WGET_URL="http://code.suckless.org/dl/dwm/$TARBALL" |
pankso@2378 | 11 DEPENDS="xorg-libX11 xorg-xsetroot" |
paul@4031 | 12 BUILD_DEPENDS="xorg-libX11-dev xorg-xproto xorg-xineramaproto" |
jozee@4934 | 13 TAGS="wm window-manager" |
pankso@2378 | 14 |
pankso@2378 | 15 # Rules to configure and make the package. |
pankso@2378 | 16 compile_rules() |
pankso@2378 | 17 { |
pankso@2378 | 18 cd $src |
pankso@2378 | 19 # From blue to brown and have lighter grey |
pankso@2378 | 20 sed -i s/'#0066ff'/'#754800'/g config.def.h |
pankso@2378 | 21 sed -i s/'#cccccc'/'#f1efeb'/g config.def.h |
pankso@2378 | 22 # 6 tag-mask |
pankso@2378 | 23 sed -i s/', "7", "8", "9"'// config.def.h |
pankso@2378 | 24 # Firefox on current tag-mask |
pankso@2378 | 25 sed -i s/'1 << 8,'/'0, '/ config.def.h |
pankso@2378 | 26 # [Shift]+[Alt]+[Enter] |
pankso@2378 | 27 sed -i s/uxterm/xterm/ config.def.h |
pankso@2378 | 28 make |
pankso@2378 | 29 } |
pankso@2378 | 30 |
pankso@2378 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2378 | 32 genpkg_rules() |
pankso@2378 | 33 { |
pankso@2378 | 34 mkdir -p $fs/usr/bin |
pankso@2378 | 35 cp -a $src/dwm $fs/usr/bin |
pankso@2378 | 36 cp -a stuff/dwm-session $fs/usr/bin |
pankso@2378 | 37 cp -a stuff/dwmbox $fs/usr/bin |
pankso@2378 | 38 chown 0.0 $fs/usr/bin/* |
pankso@2378 | 39 } |
pankso@2378 | 40 |
pankso@2378 | 41 post_install() |
pankso@2378 | 42 { |
pankso@2378 | 43 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` |
pankso@2378 | 44 # Adding WM to SLIM available sessions. |
pankso@2378 | 45 if ! echo "$res" | grep -q $PACKAGE; then |
pankso@2378 | 46 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pankso@2378 | 47 sed -i "s/^sessions.*/sessions ${res},dwm/" /etc/slim.conf |
pankso@2378 | 48 status |
pankso@2378 | 49 fi |
pankso@2378 | 50 } |
pankso@2378 | 51 |
pankso@2378 | 52 post_remove() |
pankso@2378 | 53 { |
pankso@2378 | 54 # Remove karmen from SLIM available sessions. |
pankso@2378 | 55 if grep -q dwm $1/etc/slim.conf; then |
pankso@2378 | 56 sed -i s/,dwm// $1/etc/slim.conf |
pankso@2378 | 57 fi |
pankso@2378 | 58 } |