wok annotate lxde/receipt @ rev 13469
sunxi-tools: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 08 18:28:28 2012 +0200 (2012-10-08) |
parents | 8ab73e236754 |
children | 4c7322d54d65 |
rev | line source |
---|---|
pankso@2215 | 1 # SliTaz package receipt. |
pankso@2215 | 2 |
pankso@2215 | 3 PACKAGE="lxde" |
pankso@12416 | 4 VERSION="0.3.2.1" |
pankso@3475 | 5 CATEGORY="meta" |
pankso@12416 | 6 SHORT_DESC="LXDE desktop environement meta package with SliTaz integration." |
pankso@2215 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@3475 | 8 WEB_SITE="http://lxde.org/" |
pankso@3475 | 9 TAGS="wm desktop" |
pankso@12416 | 10 SUGGESTED="lxterminal lxdm" |
pankso@12416 | 11 |
pankso@12416 | 12 DEPENDS="xorg-libX11 gtk+ pcmanfm lxpanel lxtask lxappearance lxsession |
pankso@12461 | 13 lxsession-edit lxrandr lxinput openbox obconf viewnior leafpad \ |
pankso@12461 | 14 slitaz-configs" |
pankso@2215 | 15 |
pankso@2215 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2215 | 17 genpkg_rules() |
pankso@2215 | 18 { |
pankso@12416 | 19 mkdir -p $fs/usr/bin $fs/usr/share/applications |
pankso@12416 | 20 install -m 0755 $stuff/lxde-session $fs/usr/bin |
pankso@12416 | 21 install -m 0755 $stuff/lxde-logout $fs/usr/bin |
pankso@12416 | 22 cp -a $stuff/xsessions $fs/usr/share |
pankso@12416 | 23 cp -a $stuff/lxde-logout.desktop $fs/usr/share/applications |
pankso@12416 | 24 chown -R 0.0 $fs |
pankso@2215 | 25 } |
pankso@12559 | 26 |
pankso@12559 | 27 # Add WM to SLIM available sessions. |
pankso@12559 | 28 post_install() |
pankso@12559 | 29 { |
pankso@12559 | 30 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//) |
pankso@12559 | 31 if ! echo "$res" | grep -q $PACKAGE; then |
pankso@12559 | 32 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pankso@12559 | 33 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf |
pankso@12559 | 34 status |
pankso@12559 | 35 fi |
pankso@12559 | 36 } |
pankso@12559 | 37 |
pankso@12559 | 38 # Remove WM from SLIM available sessions. |
pankso@12559 | 39 post_remove() |
pankso@12559 | 40 { |
pankso@12559 | 41 if grep -q $PACKAGE $root/etc/slim.conf; then |
pankso@12559 | 42 sed -i s/,$PACKAGE// $root/etc/slim.conf |
pankso@12559 | 43 fi |
pankso@12559 | 44 } |