wok-6.x annotate dwm/receipt @ rev 16052

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