wok view fluxbox/receipt @ rev 8912

virtualbox-ose: add wget in BUILD_DEPENDS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 28 14:45:49 2011 +0100 (2011-02-28)
parents 0b026b4ca46c
children 14855891b705
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 BUILD_DEPENDS="xorg-dev xorg-dev-proto"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WEB_SITE="http://www.fluxbox.org/"
14 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 TAGS="wm window-manager"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 patch -p1 < ../stuff/fluxbox-gcc-4.3.3.diff
22 ./configure \
23 --prefix=/usr \
24 --infodir=/usr/share/info \
25 --mandir=/usr/share/man \
26 $CONFIGURE_ARGS &&
27 make && make DESTDIR=$PWD/_pkg install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr
34 cp -a $_pkg/usr/bin $fs/usr
35 cp -a $_pkg/usr/share $fs/usr
36 }
38 post_install()
39 {
40 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
41 # Adding WM to SLIM available sessions.
42 if ! echo "$res" | grep -q $PACKAGE; then
43 echo -n "Adding $PACKAGE to /etc/slim.conf..."
44 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
45 status
46 fi
47 }
49 post_remove()
50 {
51 # Remove WM from SLIM available sessions.
52 if grep -q $PACKAGE $1/etc/slim.conf; then
53 sed -i s/,$PACKAGE// $1/etc/slim.conf
54 fi
55 }