wok diff dwm/receipt @ rev 3460
transmission: update depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 16 09:10:38 2009 +0200 (2009-06-16) |
parents | |
children | 34840ccbb43e |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dwm/receipt Tue Jun 16 09:10:38 2009 +0200 1.3 @@ -0,0 +1,57 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="dwm" 1.7 +VERSION="5.4.1" 1.8 +CATEGORY="x-window" 1.9 +SHORT_DESC="Very light dynamic window manager for X." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 +WEB_SITE="http://www.suckless.org/dwm/" 1.13 +WGET_URL="http://code.suckless.org/dl/dwm/$TARBALL" 1.14 +DEPENDS="xorg-libX11 xorg-xsetroot" 1.15 +BUILD_DEPENDS="xorg-libX11-dev" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cd $src 1.21 + # From blue to brown and have lighter grey 1.22 + sed -i s/'#0066ff'/'#754800'/g config.def.h 1.23 + sed -i s/'#cccccc'/'#f1efeb'/g config.def.h 1.24 + # 6 tag-mask 1.25 + sed -i s/', "7", "8", "9"'// config.def.h 1.26 + # Firefox on current tag-mask 1.27 + sed -i s/'1 << 8,'/'0, '/ config.def.h 1.28 + # [Shift]+[Alt]+[Enter] 1.29 + sed -i s/uxterm/xterm/ config.def.h 1.30 + make 1.31 +} 1.32 + 1.33 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.34 +genpkg_rules() 1.35 +{ 1.36 + mkdir -p $fs/usr/bin 1.37 + cp -a $src/dwm $fs/usr/bin 1.38 + cp -a stuff/dwm-session $fs/usr/bin 1.39 + cp -a stuff/dwmbox $fs/usr/bin 1.40 + chown 0.0 $fs/usr/bin/* 1.41 +} 1.42 + 1.43 +post_install() 1.44 +{ 1.45 + res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` 1.46 + # Adding WM to SLIM available sessions. 1.47 + if ! echo "$res" | grep -q $PACKAGE; then 1.48 + echo -n "Adding $PACKAGE to /etc/slim.conf..." 1.49 + sed -i "s/^sessions.*/sessions ${res},dwm/" /etc/slim.conf 1.50 + status 1.51 + fi 1.52 +} 1.53 + 1.54 +post_remove() 1.55 +{ 1.56 + # Remove karmen from SLIM available sessions. 1.57 + if grep -q dwm $1/etc/slim.conf; then 1.58 + sed -i s/,dwm// $1/etc/slim.conf 1.59 + fi 1.60 +}