wok-next view fluxbox/receipt @ rev 20883
Check Repology info from h* to l* packages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jul 11 02:06:34 2018 +0300 (2018-07-11) |
parents | 9e01bc6321ea |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="fluxbox"
4 VERSION="1.3.7"
5 CATEGORY="x-window"
6 SHORT_DESC="Fluxbox is a light and fast window manager for X."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.fluxbox.org/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 BUILD_DEPENDS="xorg-dev fontconfig-dev imlib2-dev"
14 SPLIT="fluxbox fluxbox-themes fluxbox-tools"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ./configure $CONFIGURE_ARGS &&
20 make 2>&1 | grep -v defaults.cc: && make install
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 case $PACKAGE in
27 fluxbox)
28 TAGS="window-manager"
29 DEPENDS="xorg fontconfig imlib2 hsetroot xorg-xcompmgr"
30 mkdir -p $fs/usr/share/fluxbox/styles
31 cp -a $install/usr/bin $fs/usr
32 for f in apps keys overlay windowmenu init menu
33 do
34 cp -a $install/usr/share/fluxbox/$f $fs/usr/share/fluxbox
35 done
37 # 3 Default themes --> fluxbox-themes
38 for s in Shade Flux Results
39 do
40 cp -a $install/usr/share/fluxbox/styles/$s \
41 $fs/usr/share/fluxbox/styles
42 done
44 # Split tools --> fluxbox-tools
45 for t in fbsetroot fbsetbg fluxbox-generate_menu fluxbox-remote \
46 fluxbox-update_configs
47 do
48 rm $fs/usr/bin/$t
49 done
51 # XDG Xsessions
52 cp -a $stuff/xsessions $fs/usr/share
54 # Custom SliTaz integration
55 mkdir -p $fs/usr/share/slitaz/fluxbox
56 cp -a $stuff/fluxbox-session $fs/usr/bin
57 cp -a $stuff/startup $fs/usr/share/slitaz/fluxbox
58 cp -a $stuff/styles $fs/usr/share/fluxbox
59 # Overwrite
60 cp -f $stuff/menu $fs/usr/share/fluxbox
61 cp -f $stuff/init $fs/usr/share/fluxbox
62 ;;
63 fluxbox-themes)
64 CAT="x-window|Fluxbox additionnal themes."
65 DEPENDS="fluxbox"
66 mkdir -p $fs/usr/share/fluxbox
67 cp -a $install/usr/share/fluxbox/styles $fs/usr/share/fluxbox
68 # Rome style provided by fluxbox package
69 for s in Shade Flux Results
70 do
71 rm -rf $fs/usr/share/fluxbox/styles/$s
72 done
73 ;;
74 fluxbox-tools)
75 CAT="x-window|Fluxbox additionnal tools (fbsetroot)."
76 DEPENDS="fluxbox"
77 mkdir -p $fs/usr/bin
78 for t in fbsetroot fbsetbg fluxbox-generate_menu fluxbox-remote \
79 fluxbox-update_configs
80 do
81 cp -a $install/usr/bin/$t $fs/usr/bin
82 done
83 ;;
84 esac
85 }
87 post_install_fluxbox()
88 {
89 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
90 # Adding WM to SLIM available sessions.
91 if ! echo "$res" | grep -q $PACKAGE; then
92 echo -n "Adding $PACKAGE to /etc/slim.conf..."
93 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
94 status
95 fi
96 }
98 post_remove_fluxbox()
99 {
100 # Remove WM from SLIM available sessions.
101 if grep -q $PACKAGE "$1/etc/slim.conf"; then
102 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
103 fi
104 }