wok annotate fluxbox/receipt @ rev 3113

Fluxbox: add entry into Slim sessions
author Mallory MOLLO <mallory@skyrock.com>
date Mon May 18 20:44:43 2009 +0200 (2009-05-18)
parents fce920962070
children 77eb23ead823
rev   line source
mallory@2868 1 # SliTaz package receipt.
mallory@2868 2
mallory@2868 3 PACKAGE="fluxbox"
mallory@2868 4 VERSION="1.0.0"
mallory@2868 5 CATEGORY="x-window"
mallory@2868 6 SHORT_DESC="Fluxbox is a windowmanager for X. It is very light on resources and easy to handle but yet full of features."
mallory@2868 7 MAINTAINER="mallory@sweetpeople.org"
pascal@2870 8 DEPENDS="fontconfig imlib2 libiconv xorg-libICE xorg-libSM xorg-libX11 \
pascal@2870 9 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft xorg-libXinerama \
pascal@2870 10 xorg-libXpm xorg-libXrandr xorg-libXrender"
pascal@2870 11 BUILD_DEPENDS="xorg-dev"
mallory@2868 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
mallory@2868 13 WEB_SITE="http://www.fluxbox.org/"
mallory@2868 14 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
mallory@2868 15
mallory@2868 16 # Rules to configure and make the package.
mallory@2868 17 compile_rules()
mallory@2868 18 {
mallory@2868 19 cd $src
pascal@2870 20 patch -p1 < ../stuff/fluxbox-gcc-4.3.3.diff
mallory@2868 21 ./configure \
mallory@2868 22 --prefix=/usr \
mallory@2868 23 --infodir=/usr/share/info \
mallory@2868 24 --mandir=/usr/share/man \
mallory@2868 25 $CONFIGURE_ARGS &&
mallory@2868 26 make && make DESTDIR=$PWD/_pkg install
mallory@2868 27 }
mallory@2868 28
mallory@2868 29 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@2868 30 genpkg_rules()
mallory@2868 31 {
mallory@2868 32 mkdir -p $fs/usr
mallory@2868 33 cp -a $_pkg/usr/bin $fs/usr
pascal@2870 34 cp -a $_pkg/usr/share $fs/usr
mallory@2868 35 }
mallory@2868 36
mallory@3113 37 post_install()
mallory@3113 38 {
mallory@3113 39 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
mallory@3113 40 # Adding WM to SLIM available sessions.
mallory@3113 41 if ! echo "$res" | grep -q $PACKAGE; then
mallory@3113 42 echo -n "Adding $PACKAGE to /etc/slim.conf..."
mallory@3113 43 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
mallory@3113 44 status
mallory@3113 45 fi
mallory@3113 46 }
mallory@3113 47
mallory@3113 48 post_remove()
mallory@3113 49 {
mallory@3113 50 # Remove WM from SLIM available sessions.
mallory@3113 51 if grep -q $PACKAGE $1/etc/slim.conf; then
mallory@3113 52 sed -i s/,$PACKAGE// $1/etc/slim.conf
mallory@3113 53 fi
mallory@3113 54 }
mallory@3113 55