wok annotate fluxbox/receipt @ rev 25805
created recipe for xfce4-weather-plugin
author | Hans-G?nter Theisgen |
---|---|
date | Wed Nov 13 15:24:31 2024 +0100 (7 days ago) |
parents | 640a2eba2511 |
children |
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 |
pascal@24385 | 17 # What is the latest version available today? |
pascal@24385 | 18 current_version() |
pascal@24385 | 19 { |
pascal@24385 | 20 wget -O - https://sourceforge.net/projects/fluxbox/files/fluxbox/ 2>/dev/null | \ |
pascal@25605 | 21 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24385 | 22 sed '/scope="row/!d;s|.*/fluxbox/||;s|/.*||;q' |
pascal@24385 | 23 } |
pascal@24385 | 24 |
mallory@2868 | 25 # Rules to configure and make the package. |
mallory@2868 | 26 compile_rules() |
mallory@2868 | 27 { |
mallory@2868 | 28 cd $src |
pankso@11886 | 29 ./configure $CONFIGURE_ARGS && |
pascal@15144 | 30 make 2>&1 | grep -v defaults.cc: && make install |
mallory@2868 | 31 } |
mallory@2868 | 32 |
mallory@2868 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2868 | 34 genpkg_rules() |
mallory@2868 | 35 { |
pankso@11886 | 36 mkdir -p $fs/usr/share/fluxbox/styles |
pankso@11886 | 37 cp -a $install/usr/bin $fs/usr |
pankso@11886 | 38 for f in apps keys overlay windowmenu init menu |
pankso@11886 | 39 do |
pankso@11886 | 40 cp -a $install/usr/share/fluxbox/$f $fs/usr/share/fluxbox |
pankso@11886 | 41 done |
pankso@12527 | 42 |
pankso@12475 | 43 # 3 Default themes --> fluxbox-themes |
pankso@12475 | 44 for s in Shade Flux Results |
pankso@11886 | 45 do |
pankso@11886 | 46 cp -a $install/usr/share/fluxbox/styles/$s \ |
pankso@11886 | 47 $fs/usr/share/fluxbox/styles |
pankso@11886 | 48 done |
pankso@12527 | 49 |
pankso@12475 | 50 # Split tools --> fluxbox-tools |
pankso@12475 | 51 for t in fbsetroot fbsetbg fluxbox-generate_menu fluxbox-remote \ |
pankso@12475 | 52 fluxbox-update_configs |
pankso@12475 | 53 do |
pankso@12475 | 54 rm $fs/usr/bin/$t |
pankso@12475 | 55 done |
pankso@12527 | 56 |
pankso@12475 | 57 # XDG Xsessions |
pankso@12475 | 58 cp -a $stuff/xsessions $fs/usr/share |
pankso@12527 | 59 |
pankso@12475 | 60 # Custom SliTaz integration |
pankso@12475 | 61 mkdir -p $fs/usr/share/slitaz/fluxbox |
pankso@12475 | 62 cp -a $stuff/fluxbox-session $fs/usr/bin |
pankso@12527 | 63 cp -a $stuff/startup $fs/usr/share/slitaz/fluxbox |
pankso@12527 | 64 cp -a $stuff/styles $fs/usr/share/fluxbox |
pankso@12475 | 65 # Overwrite |
pankso@12527 | 66 cp -f $stuff/menu $fs/usr/share/fluxbox |
pankso@12527 | 67 cp -f $stuff/init $fs/usr/share/fluxbox |
mallory@2868 | 68 } |
mallory@2868 | 69 |
mallory@3113 | 70 post_install() |
mallory@3113 | 71 { |
pascal@18730 | 72 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
mallory@3113 | 73 # Adding WM to SLIM available sessions. |
mallory@3113 | 74 if ! echo "$res" | grep -q $PACKAGE; then |
mallory@3113 | 75 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pascal@18730 | 76 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf" |
mallory@3113 | 77 status |
mallory@3113 | 78 fi |
mallory@3113 | 79 } |
mallory@3113 | 80 |
mallory@3113 | 81 post_remove() |
mallory@3113 | 82 { |
mallory@3113 | 83 # Remove WM from SLIM available sessions. |
pascal@18730 | 84 if grep -q $PACKAGE "$1/etc/slim.conf"; then |
pascal@18730 | 85 sed -i s/,$PACKAGE// "$1/etc/slim.conf" |
mallory@3113 | 86 fi |
mallory@3113 | 87 } |
mallory@3113 | 88 |