wok-next annotate fluxbox/receipt @ rev 14309
Up: ethumb-dev (1.7.5)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Apr 07 10:20:34 2013 +0200 (2013-04-07) |
parents | 96d7eeb131d6 |
children | 4e02d9160644 |
rev | line source |
---|---|
mallory@2868 | 1 # SliTaz package receipt. |
mallory@2868 | 2 |
mallory@2868 | 3 PACKAGE="fluxbox" |
pankso@11886 | 4 VERSION="1.3.2" |
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" |
mallory@2868 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
mallory@2868 | 9 WEB_SITE="http://www.fluxbox.org/" |
mallory@2868 | 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@3402 | 11 TAGS="wm window-manager" |
mallory@2868 | 12 |
pankso@12475 | 13 DEPENDS="xorg fontconfig imlib2 hsetroot xorg-xcompmgr" |
pankso@12475 | 14 BUILD_DEPENDS="xorg-dev fontconfig-dev imlib2-dev" |
pankso@11886 | 15 |
mallory@2868 | 16 # Rules to configure and make the package. |
mallory@2868 | 17 compile_rules() |
mallory@2868 | 18 { |
mallory@2868 | 19 cd $src |
pankso@11886 | 20 ./configure $CONFIGURE_ARGS && |
pankso@11886 | 21 make && make install |
mallory@2868 | 22 } |
mallory@2868 | 23 |
mallory@2868 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2868 | 25 genpkg_rules() |
mallory@2868 | 26 { |
pankso@11886 | 27 mkdir -p $fs/usr/share/fluxbox/styles |
pankso@11886 | 28 cp -a $install/usr/bin $fs/usr |
pankso@11886 | 29 for f in apps keys overlay windowmenu init menu |
pankso@11886 | 30 do |
pankso@11886 | 31 cp -a $install/usr/share/fluxbox/$f $fs/usr/share/fluxbox |
pankso@11886 | 32 done |
pankso@12527 | 33 |
pankso@12475 | 34 # 3 Default themes --> fluxbox-themes |
pankso@12475 | 35 for s in Shade Flux Results |
pankso@11886 | 36 do |
pankso@11886 | 37 cp -a $install/usr/share/fluxbox/styles/$s \ |
pankso@11886 | 38 $fs/usr/share/fluxbox/styles |
pankso@11886 | 39 done |
pankso@12527 | 40 |
pankso@12475 | 41 # Split tools --> fluxbox-tools |
pankso@12475 | 42 for t in fbsetroot fbsetbg fluxbox-generate_menu fluxbox-remote \ |
pankso@12475 | 43 fluxbox-update_configs |
pankso@12475 | 44 do |
pankso@12475 | 45 rm $fs/usr/bin/$t |
pankso@12475 | 46 done |
pankso@12527 | 47 |
pankso@12475 | 48 # XDG Xsessions |
pankso@12475 | 49 cp -a $stuff/xsessions $fs/usr/share |
pankso@12527 | 50 |
pankso@12475 | 51 # Custom SliTaz integration |
pankso@12475 | 52 mkdir -p $fs/usr/share/slitaz/fluxbox |
pankso@12475 | 53 cp -a $stuff/fluxbox-session $fs/usr/bin |
pankso@12527 | 54 cp -a $stuff/startup $fs/usr/share/slitaz/fluxbox |
pankso@12527 | 55 cp -a $stuff/styles $fs/usr/share/fluxbox |
pankso@12475 | 56 # Overwrite |
pankso@12527 | 57 cp -f $stuff/menu $fs/usr/share/fluxbox |
pankso@12527 | 58 cp -f $stuff/init $fs/usr/share/fluxbox |
mallory@2868 | 59 } |
mallory@2868 | 60 |
mallory@3113 | 61 post_install() |
mallory@3113 | 62 { |
pankso@12475 | 63 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//) |
mallory@3113 | 64 # Adding WM to SLIM available sessions. |
mallory@3113 | 65 if ! echo "$res" | grep -q $PACKAGE; then |
mallory@3113 | 66 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pankso@12475 | 67 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf |
mallory@3113 | 68 status |
mallory@3113 | 69 fi |
mallory@3113 | 70 } |
mallory@3113 | 71 |
mallory@3113 | 72 post_remove() |
mallory@3113 | 73 { |
mallory@3113 | 74 # Remove WM from SLIM available sessions. |
mallory@3113 | 75 if grep -q $PACKAGE $1/etc/slim.conf; then |
mallory@3113 | 76 sed -i s/,$PACKAGE// $1/etc/slim.conf |
mallory@3113 | 77 fi |
mallory@3113 | 78 } |
mallory@3113 | 79 |