wok-next view fluxbox/receipt @ rev 21045
Up cookutils (1094)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Nov 26 12:14:47 2018 +0200 (2018-11-26) |
parents | 384441c3ddea |
children | 5669e8b3be70 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="fluxbox"
4 VERSION="1.3.7"
5 CATEGORY="x-window"
6 SHORT_DESC="Light and fast window manager for X"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://www.fluxbox.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="xorg-dev fontconfig-dev imlib2-dev"
15 SPLIT="$PACKAGE-themes $PACKAGE-tools"
17 compile_rules() {
18 ./configure $CONFIGURE_ARGS &&
19 make &&
20 make install
21 }
23 genpkg_rules() {
24 case $PACKAGE in
25 fluxbox)
26 TAGS="window-manager"
27 DEPENDS="xorg fontconfig imlib2 hsetroot xorg-xcompmgr"
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; 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; do
36 cp -a $install/usr/share/fluxbox/styles/$s \
37 $fs/usr/share/fluxbox/styles
38 done
40 # Split tools --> fluxbox-tools
41 for t in fbsetroot fbsetbg fluxbox-generate_menu fluxbox-remote \
42 fluxbox-update_configs; do
43 rm $fs/usr/bin/$t
44 done
46 # XDG Xsessions
47 cp -a $stuff/xsessions $fs/usr/share
49 # Custom SliTaz integration
50 mkdir -p $fs/usr/share/slitaz/fluxbox
51 cp -a $stuff/fluxbox-session $fs/usr/bin
52 cp -a $stuff/startup $fs/usr/share/slitaz/fluxbox
53 cp -a $stuff/styles $fs/usr/share/fluxbox
54 # Overwrite
55 cp -f $stuff/menu $fs/usr/share/fluxbox
56 cp -f $stuff/init $fs/usr/share/fluxbox
57 ;;
58 fluxbox-themes)
59 CAT="x-window|additionnal themes"
60 DEPENDS="fluxbox"
61 mkdir -p $fs/usr/share/fluxbox
62 cp -a $install/usr/share/fluxbox/styles $fs/usr/share/fluxbox
63 # Rome style provided by fluxbox package
64 for s in Shade Flux Results; do
65 rm -rf $fs/usr/share/fluxbox/styles/$s
66 done
67 ;;
68 fluxbox-tools)
69 CAT="x-window|additionnal tools"
70 DEPENDS="fluxbox"
71 mkdir -p $fs/usr/bin
72 for t in fbsetroot fbsetbg fluxbox-generate_menu fluxbox-remote \
73 fluxbox-update_configs; do
74 cp -a $install/usr/bin/$t $fs/usr/bin
75 done
76 ;;
77 esac
78 }
80 post_install_fluxbox() {
81 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
82 # Adding WM to SLIM available sessions.
83 if ! echo "$res" | grep -q $PACKAGE; then
84 echo -n "Adding $PACKAGE to /etc/slim.conf..."
85 sed -i "s/^sessions.*/sessions $res,$PACKAGE/" "$1/etc/slim.conf"
86 status
87 fi
88 }
90 post_remove_fluxbox() {
91 # Remove WM from SLIM available sessions.
92 if grep -q $PACKAGE "$1/etc/slim.conf"; then
93 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
94 fi
95 }