wok-next view fluxbox/receipt @ rev 8960

Update ddd, fltk, fltk-2.0.x, and fluxbox depends.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Mar 01 19:27:31 2011 +0000 (2011-03-01)
parents 2aeb09941094
children d1768332cee0
line source
1 # SliTaz package receipt.
3 PACKAGE="fluxbox"
4 VERSION="1.3.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Fluxbox is a windowmanager for X. It is very light on resources and easy to handle but yet full of features."
7 MAINTAINER="mallory@sweetpeople.org"
8 DEPENDS="fontconfig imlib2 xorg-libICE xorg-libSM xorg-libX11 \
9 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft xorg-libXinerama \
10 xorg-libXpm xorg-libXrandr xorg-libXrender gcc-lib-base"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WEB_SITE="http://www.fluxbox.org/"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 TAGS="wm window-manager"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 patch -p1 < ../stuff/fluxbox-gcc-4.3.3.diff
21 ./configure \
22 --prefix=/usr \
23 --infodir=/usr/share/info \
24 --mandir=/usr/share/man \
25 $CONFIGURE_ARGS &&
26 make && make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/share $fs/usr
35 }
37 post_install()
38 {
39 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
40 # Adding WM to SLIM available sessions.
41 if ! echo "$res" | grep -q $PACKAGE; then
42 echo -n "Adding $PACKAGE to /etc/slim.conf..."
43 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
44 status
45 fi
46 }
48 post_remove()
49 {
50 # Remove WM from SLIM available sessions.
51 if grep -q $PACKAGE $1/etc/slim.conf; then
52 sed -i s/,$PACKAGE// $1/etc/slim.conf
53 fi
54 }