wok-6.x annotate fluxbox/receipt @ rev 17149
slitaz-configs-base: fix Slim Root Login.(/rootfs/root/.xinitrc)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Sep 10 16:16:18 2014 +0200 (2014-09-10) |
parents | 4e02d9160644 |
children | 5d53e8ccbc8d |
rev | line source |
---|---|
mallory@2868 | 1 # SliTaz package receipt. |
mallory@2868 | 2 |
mallory@2868 | 3 PACKAGE="fluxbox" |
pascal@15144 | 4 VERSION="1.3.5" |
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" |
pankso@3402 | 12 TAGS="wm 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 { |
pankso@12475 | 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..." |
pankso@12475 | 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. |
mallory@3113 | 76 if grep -q $PACKAGE $1/etc/slim.conf; then |
mallory@3113 | 77 sed -i s/,$PACKAGE// $1/etc/slim.conf |
mallory@3113 | 78 fi |
mallory@3113 | 79 } |
mallory@3113 | 80 |