wok-current view fluxbox/receipt @ rev 15512
Up: thunderbird-langpack-es_AR (17.0.10esr)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Nov 19 22:24:18 2013 +0100 (2013-11-19) |
parents | e000ccc93a7b |
children | 3b4e4318134e |
line source
1 # SliTaz package receipt.
3 PACKAGE="fluxbox"
4 VERSION="1.3.5"
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 2>&1 | grep -v defaults.cc: && 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 }