wok view fluxbox/receipt @ rev 14862
Up: jclic (0.2.1.0)
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Mon Jul 22 18:20:04 2013 -0300 (2013-07-22) |
parents | 96d7eeb131d6 |
children | 4e02d9160644 |
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 hsetroot xorg-xcompmgr"
14 BUILD_DEPENDS="xorg-dev fontconfig-dev imlib2-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure $CONFIGURE_ARGS &&
21 make && make install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/share/fluxbox/styles
28 cp -a $install/usr/bin $fs/usr
29 for f in apps keys overlay windowmenu init menu
30 do
31 cp -a $install/usr/share/fluxbox/$f $fs/usr/share/fluxbox
32 done
34 # 3 Default themes --> fluxbox-themes
35 for s in Shade Flux Results
36 do
37 cp -a $install/usr/share/fluxbox/styles/$s \
38 $fs/usr/share/fluxbox/styles
39 done
41 # Split tools --> fluxbox-tools
42 for t in fbsetroot fbsetbg fluxbox-generate_menu fluxbox-remote \
43 fluxbox-update_configs
44 do
45 rm $fs/usr/bin/$t
46 done
48 # XDG Xsessions
49 cp -a $stuff/xsessions $fs/usr/share
51 # Custom SliTaz integration
52 mkdir -p $fs/usr/share/slitaz/fluxbox
53 cp -a $stuff/fluxbox-session $fs/usr/bin
54 cp -a $stuff/startup $fs/usr/share/slitaz/fluxbox
55 cp -a $stuff/styles $fs/usr/share/fluxbox
56 # Overwrite
57 cp -f $stuff/menu $fs/usr/share/fluxbox
58 cp -f $stuff/init $fs/usr/share/fluxbox
59 }
61 post_install()
62 {
63 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
64 # Adding WM to SLIM available sessions.
65 if ! echo "$res" | grep -q $PACKAGE; then
66 echo -n "Adding $PACKAGE to /etc/slim.conf..."
67 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf
68 status
69 fi
70 }
72 post_remove()
73 {
74 # Remove WM from SLIM available sessions.
75 if grep -q $PACKAGE $1/etc/slim.conf; then
76 sed -i s/,$PACKAGE// $1/etc/slim.conf
77 fi
78 }