wok-next annotate fluxbox/receipt @ rev 20883
Check Repology info from h* to l* packages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jul 11 02:06:34 2018 +0300 (2018-07-11) |
parents | 9e01bc6321ea |
children | d5aab818505e |
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" |
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" |
mallory@2868 | 12 |
pankso@12475 | 13 BUILD_DEPENDS="xorg-dev fontconfig-dev imlib2-dev" |
pascal@20184 | 14 SPLIT="fluxbox fluxbox-themes fluxbox-tools" |
pankso@11886 | 15 |
mallory@2868 | 16 # Rules to configure and make the package. |
mallory@2868 | 17 compile_rules() |
mallory@2868 | 18 { |
pankso@11886 | 19 ./configure $CONFIGURE_ARGS && |
pascal@15144 | 20 make 2>&1 | grep -v defaults.cc: && make install |
mallory@2868 | 21 } |
mallory@2868 | 22 |
mallory@2868 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2868 | 24 genpkg_rules() |
mallory@2868 | 25 { |
pascal@20184 | 26 case $PACKAGE in |
pascal@20184 | 27 fluxbox) |
pascal@20184 | 28 TAGS="window-manager" |
pascal@20184 | 29 DEPENDS="xorg fontconfig imlib2 hsetroot xorg-xcompmgr" |
pascal@20184 | 30 mkdir -p $fs/usr/share/fluxbox/styles |
pascal@20184 | 31 cp -a $install/usr/bin $fs/usr |
pascal@20184 | 32 for f in apps keys overlay windowmenu init menu |
pascal@20184 | 33 do |
pascal@20184 | 34 cp -a $install/usr/share/fluxbox/$f $fs/usr/share/fluxbox |
pascal@20184 | 35 done |
pankso@12527 | 36 |
pascal@20184 | 37 # 3 Default themes --> fluxbox-themes |
pascal@20184 | 38 for s in Shade Flux Results |
pascal@20184 | 39 do |
pascal@20184 | 40 cp -a $install/usr/share/fluxbox/styles/$s \ |
pascal@20184 | 41 $fs/usr/share/fluxbox/styles |
pascal@20184 | 42 done |
pankso@12527 | 43 |
pascal@20184 | 44 # Split tools --> fluxbox-tools |
pascal@20184 | 45 for t in fbsetroot fbsetbg fluxbox-generate_menu fluxbox-remote \ |
pascal@20184 | 46 fluxbox-update_configs |
pascal@20184 | 47 do |
pascal@20184 | 48 rm $fs/usr/bin/$t |
pascal@20184 | 49 done |
pankso@12527 | 50 |
pascal@20184 | 51 # XDG Xsessions |
pascal@20184 | 52 cp -a $stuff/xsessions $fs/usr/share |
pankso@12527 | 53 |
pascal@20184 | 54 # Custom SliTaz integration |
pascal@20184 | 55 mkdir -p $fs/usr/share/slitaz/fluxbox |
pascal@20184 | 56 cp -a $stuff/fluxbox-session $fs/usr/bin |
pascal@20184 | 57 cp -a $stuff/startup $fs/usr/share/slitaz/fluxbox |
pascal@20184 | 58 cp -a $stuff/styles $fs/usr/share/fluxbox |
pascal@20184 | 59 # Overwrite |
pascal@20184 | 60 cp -f $stuff/menu $fs/usr/share/fluxbox |
pascal@20184 | 61 cp -f $stuff/init $fs/usr/share/fluxbox |
pascal@20184 | 62 ;; |
pascal@20184 | 63 fluxbox-themes) |
pascal@20184 | 64 CAT="x-window|Fluxbox additionnal themes." |
pascal@20184 | 65 DEPENDS="fluxbox" |
pascal@20184 | 66 mkdir -p $fs/usr/share/fluxbox |
pascal@20184 | 67 cp -a $install/usr/share/fluxbox/styles $fs/usr/share/fluxbox |
pascal@20184 | 68 # Rome style provided by fluxbox package |
pascal@20184 | 69 for s in Shade Flux Results |
pascal@20184 | 70 do |
pascal@20184 | 71 rm -rf $fs/usr/share/fluxbox/styles/$s |
pascal@20184 | 72 done |
pascal@20184 | 73 ;; |
pascal@20184 | 74 fluxbox-tools) |
pascal@20184 | 75 CAT="x-window|Fluxbox additionnal tools (fbsetroot)." |
pascal@20184 | 76 DEPENDS="fluxbox" |
pascal@20184 | 77 mkdir -p $fs/usr/bin |
pascal@20184 | 78 for t in fbsetroot fbsetbg fluxbox-generate_menu fluxbox-remote \ |
pascal@20184 | 79 fluxbox-update_configs |
pascal@20184 | 80 do |
pascal@20184 | 81 cp -a $install/usr/bin/$t $fs/usr/bin |
pascal@20184 | 82 done |
pascal@20184 | 83 ;; |
pascal@20184 | 84 esac |
mallory@2868 | 85 } |
mallory@2868 | 86 |
pascal@20184 | 87 post_install_fluxbox() |
mallory@3113 | 88 { |
pascal@18730 | 89 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
mallory@3113 | 90 # Adding WM to SLIM available sessions. |
mallory@3113 | 91 if ! echo "$res" | grep -q $PACKAGE; then |
mallory@3113 | 92 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pascal@18730 | 93 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf" |
mallory@3113 | 94 status |
mallory@3113 | 95 fi |
mallory@3113 | 96 } |
mallory@3113 | 97 |
pascal@20184 | 98 post_remove_fluxbox() |
mallory@3113 | 99 { |
mallory@3113 | 100 # Remove WM from SLIM available sessions. |
pascal@18730 | 101 if grep -q $PACKAGE "$1/etc/slim.conf"; then |
pascal@18730 | 102 sed -i s/,$PACKAGE// "$1/etc/slim.conf" |
mallory@3113 | 103 fi |
mallory@3113 | 104 } |