wok view fluxbox/receipt @ rev 6185
Up: gimp, gimp-console, gimp-dev, gimp-plug-ins to 2.6.10.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Sep 10 18:25:26 2010 +0000 (2010-09-10) |
parents | 77eb23ead823 |
children | 98adbadbeed6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="fluxbox"
4 VERSION="1.0.0"
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"
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 }