wok-4.x annotate fluxbox/receipt @ rev 9259

Use SOURCE to define tarball properly (thanks Godane)
author Antoine Bodin <gokhlayeh@slitaz.org>
date Tue Mar 15 03:39:52 2011 +0100 (2011-03-15)
parents 2aeb09941094
children d1768332cee0
rev   line source
mallory@2868 1 # SliTaz package receipt.
mallory@2868 2
mallory@2868 3 PACKAGE="fluxbox"
slaxemulator@8905 4 VERSION="1.3.1"
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"
pankso@3402 8 DEPENDS="fontconfig imlib2 xorg-libICE xorg-libSM xorg-libX11 \
pascal@2870 9 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft xorg-libXinerama \
pascal@5001 10 xorg-libXpm xorg-libXrandr xorg-libXrender gcc-lib-base"
mallory@2868 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
mallory@2868 12 WEB_SITE="http://www.fluxbox.org/"
mallory@2868 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@3402 14 TAGS="wm window-manager"
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