wok view fluxbox/receipt @ rev 24252
updated perl-soap-lite (0.710.08 -> 1.27)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jan 02 09:51:29 2022 +0100 (2022-01-02) |
parents | 50797d67e0af |
children | 640a2eba2511 |
line source
1 # SliTaz package receipt.
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"
12 TAGS="window-manager"
14 DEPENDS="xorg fontconfig imlib2 hsetroot xorg-xcompmgr"
15 BUILD_DEPENDS="xorg-dev fontconfig-dev imlib2-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure $CONFIGURE_ARGS &&
22 make 2>&1 | grep -v defaults.cc: && 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
35 # 3 Default themes --> fluxbox-themes
36 for s in Shade Flux Results
37 do
38 cp -a $install/usr/share/fluxbox/styles/$s \
39 $fs/usr/share/fluxbox/styles
40 done
42 # Split tools --> fluxbox-tools
43 for t in fbsetroot fbsetbg fluxbox-generate_menu fluxbox-remote \
44 fluxbox-update_configs
45 do
46 rm $fs/usr/bin/$t
47 done
49 # XDG Xsessions
50 cp -a $stuff/xsessions $fs/usr/share
52 # Custom SliTaz integration
53 mkdir -p $fs/usr/share/slitaz/fluxbox
54 cp -a $stuff/fluxbox-session $fs/usr/bin
55 cp -a $stuff/startup $fs/usr/share/slitaz/fluxbox
56 cp -a $stuff/styles $fs/usr/share/fluxbox
57 # Overwrite
58 cp -f $stuff/menu $fs/usr/share/fluxbox
59 cp -f $stuff/init $fs/usr/share/fluxbox
60 }
62 post_install()
63 {
64 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
65 # Adding WM to SLIM available sessions.
66 if ! echo "$res" | grep -q $PACKAGE; then
67 echo -n "Adding $PACKAGE to /etc/slim.conf..."
68 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
69 status
70 fi
71 }
73 post_remove()
74 {
75 # Remove WM from SLIM available sessions.
76 if grep -q $PACKAGE "$1/etc/slim.conf"; then
77 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
78 fi
79 }