wok view fluxbox/receipt @ rev 12252

Up: slitaz-tools (4.9.1) - Last minute bug fix
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 10 12:10:23 2012 +0200 (2012-04-10)
parents d1768332cee0
children 96d7eeb131d6
line source
1 # SliTaz package receipt.
3 PACKAGE="fluxbox"
4 VERSION="1.3.2"
5 CATEGORY="x-window"
6 SHORT_DESC="Fluxbox is a light and fast window manager for X."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.fluxbox.org/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
11 TAGS="wm window-manager"
13 DEPENDS="xorg fontconfig imlib2"
14 BUILD_DEPENDS="xorg fontconfig imlib2"
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 $CONFIGURE_ARGS &&
22 make && make install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/share/fluxbox/styles
29 cp -a $install/usr/bin $fs/usr
30 for f in apps keys overlay windowmenu init menu
31 do
32 cp -a $install/usr/share/fluxbox/$f $fs/usr/share/fluxbox
33 done
34 for s in Shade Flux bloe Results
35 do
36 cp -a $install/usr/share/fluxbox/styles/$s \
37 $fs/usr/share/fluxbox/styles
38 done
39 }
41 post_install()
42 {
43 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
44 # Adding WM to SLIM available sessions.
45 if ! echo "$res" | grep -q $PACKAGE; then
46 echo -n "Adding $PACKAGE to /etc/slim.conf..."
47 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
48 status
49 fi
50 }
52 post_remove()
53 {
54 # Remove WM from SLIM available sessions.
55 if grep -q $PACKAGE $1/etc/slim.conf; then
56 sed -i s/,$PACKAGE// $1/etc/slim.conf
57 fi
58 }