wok-next annotate fluxbox/receipt @ rev 21432

updated rawstudio (1.2 -> 2.0)
author Hans-G?nter Theisgen
date Tue May 05 09:38:29 2020 +0100 (2020-05-05)
parents d5aab818505e
children
rev   line source
pascal@20184 1 # SliTaz package receipt v2.
mallory@2868 2
mallory@2868 3 PACKAGE="fluxbox"
psychomaniak@18318 4 VERSION="1.3.7"
mallory@2868 5 CATEGORY="x-window"
al@21020 6 SHORT_DESC="Light and fast window manager for X"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15593 8 LICENSE="MIT"
al@21020 9 WEB_SITE="http://www.fluxbox.org/"
al@21020 10
mallory@2868 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
mallory@2868 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
mallory@2868 13
pankso@12475 14 BUILD_DEPENDS="xorg-dev fontconfig-dev imlib2-dev"
al@21020 15 SPLIT="$PACKAGE-themes $PACKAGE-tools"
pankso@11886 16
al@21020 17 compile_rules() {
pankso@11886 18 ./configure $CONFIGURE_ARGS &&
al@21020 19 make &&
al@21020 20 make install
mallory@2868 21 }
mallory@2868 22
al@21020 23 genpkg_rules() {
pascal@20184 24 case $PACKAGE in
al@21020 25 fluxbox)
al@21020 26 TAGS="window-manager"
al@21078 27 DEPENDS="xorg fontconfig imlib2 hsetroot xcompmgr"
al@21020 28 mkdir -p $fs/usr/share/fluxbox/styles
al@21020 29 cp -a $install/usr/bin $fs/usr
al@21020 30 for f in apps keys overlay windowmenu init menu; do
al@21020 31 cp -a $install/usr/share/fluxbox/$f $fs/usr/share/fluxbox
al@21020 32 done
pankso@12527 33
al@21020 34 # 3 Default themes --> fluxbox-themes
al@21020 35 for s in Shade Flux Results; do
al@21020 36 cp -a $install/usr/share/fluxbox/styles/$s \
al@21020 37 $fs/usr/share/fluxbox/styles
al@21020 38 done
pankso@12527 39
al@21020 40 # Split tools --> fluxbox-tools
al@21020 41 for t in fbsetroot fbsetbg fluxbox-generate_menu fluxbox-remote \
al@21020 42 fluxbox-update_configs; do
al@21020 43 rm $fs/usr/bin/$t
al@21020 44 done
pankso@12527 45
al@21020 46 # XDG Xsessions
al@21020 47 cp -a $stuff/xsessions $fs/usr/share
pankso@12527 48
al@21020 49 # Custom SliTaz integration
al@21020 50 mkdir -p $fs/usr/share/slitaz/fluxbox
al@21020 51 cp -a $stuff/fluxbox-session $fs/usr/bin
al@21020 52 cp -a $stuff/startup $fs/usr/share/slitaz/fluxbox
al@21020 53 cp -a $stuff/styles $fs/usr/share/fluxbox
al@21020 54 # Overwrite
al@21020 55 cp -f $stuff/menu $fs/usr/share/fluxbox
al@21020 56 cp -f $stuff/init $fs/usr/share/fluxbox
al@21020 57 ;;
al@21020 58 fluxbox-themes)
al@21020 59 CAT="x-window|additionnal themes"
al@21020 60 DEPENDS="fluxbox"
al@21020 61 mkdir -p $fs/usr/share/fluxbox
al@21020 62 cp -a $install/usr/share/fluxbox/styles $fs/usr/share/fluxbox
al@21020 63 # Rome style provided by fluxbox package
al@21020 64 for s in Shade Flux Results; do
al@21020 65 rm -rf $fs/usr/share/fluxbox/styles/$s
al@21020 66 done
al@21020 67 ;;
al@21020 68 fluxbox-tools)
al@21020 69 CAT="x-window|additionnal tools"
al@21020 70 DEPENDS="fluxbox"
al@21020 71 mkdir -p $fs/usr/bin
al@21020 72 for t in fbsetroot fbsetbg fluxbox-generate_menu fluxbox-remote \
al@21020 73 fluxbox-update_configs; do
al@21020 74 cp -a $install/usr/bin/$t $fs/usr/bin
al@21020 75 done
al@21020 76 ;;
pascal@20184 77 esac
mallory@2868 78 }
mallory@2868 79
al@21020 80 post_install_fluxbox() {
pascal@18730 81 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
mallory@3113 82 # Adding WM to SLIM available sessions.
mallory@3113 83 if ! echo "$res" | grep -q $PACKAGE; then
mallory@3113 84 echo -n "Adding $PACKAGE to /etc/slim.conf..."
al@21020 85 sed -i "s/^sessions.*/sessions $res,$PACKAGE/" "$1/etc/slim.conf"
mallory@3113 86 status
mallory@3113 87 fi
mallory@3113 88 }
mallory@3113 89
al@21020 90 post_remove_fluxbox() {
mallory@3113 91 # Remove WM from SLIM available sessions.
pascal@18730 92 if grep -q $PACKAGE "$1/etc/slim.conf"; then
pascal@18730 93 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
mallory@3113 94 fi
mallory@3113 95 }