wok annotate fluxbox/receipt @ rev 22279
updated xorg-xf86-video-s3virge (1.10.6 -> 1.11.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Nov 13 14:17:52 2019 +0100 (2019-11-13) |
parents | 50797d67e0af |
children | 640a2eba2511 |
rev | line source |
---|---|
mallory@2868 | 1 # SliTaz package receipt. |
mallory@2868 | 2 |
mallory@2868 | 3 PACKAGE="fluxbox" |
psychomaniak@18318 | 4 VERSION="1.3.7" |
mallory@2868 | 5 CATEGORY="x-window" |
pankso@11886 | 6 SHORT_DESC="Fluxbox is a light and fast window manager for X." |
pankso@11886 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15593 | 8 LICENSE="MIT" |
mallory@2868 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
mallory@2868 | 10 WEB_SITE="http://www.fluxbox.org/" |
mallory@2868 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
al@17501 | 12 TAGS="window-manager" |
mallory@2868 | 13 |
pankso@12475 | 14 DEPENDS="xorg fontconfig imlib2 hsetroot xorg-xcompmgr" |
pankso@12475 | 15 BUILD_DEPENDS="xorg-dev fontconfig-dev imlib2-dev" |
pankso@11886 | 16 |
mallory@2868 | 17 # Rules to configure and make the package. |
mallory@2868 | 18 compile_rules() |
mallory@2868 | 19 { |
mallory@2868 | 20 cd $src |
pankso@11886 | 21 ./configure $CONFIGURE_ARGS && |
pascal@15144 | 22 make 2>&1 | grep -v defaults.cc: && make install |
mallory@2868 | 23 } |
mallory@2868 | 24 |
mallory@2868 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2868 | 26 genpkg_rules() |
mallory@2868 | 27 { |
pankso@11886 | 28 mkdir -p $fs/usr/share/fluxbox/styles |
pankso@11886 | 29 cp -a $install/usr/bin $fs/usr |
pankso@11886 | 30 for f in apps keys overlay windowmenu init menu |
pankso@11886 | 31 do |
pankso@11886 | 32 cp -a $install/usr/share/fluxbox/$f $fs/usr/share/fluxbox |
pankso@11886 | 33 done |
pankso@12527 | 34 |
pankso@12475 | 35 # 3 Default themes --> fluxbox-themes |
pankso@12475 | 36 for s in Shade Flux Results |
pankso@11886 | 37 do |
pankso@11886 | 38 cp -a $install/usr/share/fluxbox/styles/$s \ |
pankso@11886 | 39 $fs/usr/share/fluxbox/styles |
pankso@11886 | 40 done |
pankso@12527 | 41 |
pankso@12475 | 42 # Split tools --> fluxbox-tools |
pankso@12475 | 43 for t in fbsetroot fbsetbg fluxbox-generate_menu fluxbox-remote \ |
pankso@12475 | 44 fluxbox-update_configs |
pankso@12475 | 45 do |
pankso@12475 | 46 rm $fs/usr/bin/$t |
pankso@12475 | 47 done |
pankso@12527 | 48 |
pankso@12475 | 49 # XDG Xsessions |
pankso@12475 | 50 cp -a $stuff/xsessions $fs/usr/share |
pankso@12527 | 51 |
pankso@12475 | 52 # Custom SliTaz integration |
pankso@12475 | 53 mkdir -p $fs/usr/share/slitaz/fluxbox |
pankso@12475 | 54 cp -a $stuff/fluxbox-session $fs/usr/bin |
pankso@12527 | 55 cp -a $stuff/startup $fs/usr/share/slitaz/fluxbox |
pankso@12527 | 56 cp -a $stuff/styles $fs/usr/share/fluxbox |
pankso@12475 | 57 # Overwrite |
pankso@12527 | 58 cp -f $stuff/menu $fs/usr/share/fluxbox |
pankso@12527 | 59 cp -f $stuff/init $fs/usr/share/fluxbox |
mallory@2868 | 60 } |
mallory@2868 | 61 |
mallory@3113 | 62 post_install() |
mallory@3113 | 63 { |
pascal@18730 | 64 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
mallory@3113 | 65 # Adding WM to SLIM available sessions. |
mallory@3113 | 66 if ! echo "$res" | grep -q $PACKAGE; then |
mallory@3113 | 67 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pascal@18730 | 68 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf" |
mallory@3113 | 69 status |
mallory@3113 | 70 fi |
mallory@3113 | 71 } |
mallory@3113 | 72 |
mallory@3113 | 73 post_remove() |
mallory@3113 | 74 { |
mallory@3113 | 75 # Remove WM from SLIM available sessions. |
pascal@18730 | 76 if grep -q $PACKAGE "$1/etc/slim.conf"; then |
pascal@18730 | 77 sed -i s/,$PACKAGE// "$1/etc/slim.conf" |
mallory@3113 | 78 fi |
mallory@3113 | 79 } |
mallory@3113 | 80 |