wok-6.x annotate lxde/receipt @ rev 15837
Up: fuse to 2.9.3.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Jan 27 04:24:04 2014 +0000 (2014-01-27) |
parents | 83966e88a5da |
children | 62b66edb40b5 |
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" |
pascal@15379 | 8 LICENSE="GPL2" |
pankso@3475 | 9 WEB_SITE="http://lxde.org/" |
pankso@3475 | 10 TAGS="wm desktop" |
pankso@13560 | 11 SUGGESTED="lxterminal lxdm pcmanfm" |
pankso@12416 | 12 |
slaxemulator@13571 | 13 DEPENDS="xorg-libX11 gtk+ lxpanel lxtask lxappearance lxsession \ |
pankso@12461 | 14 lxsession-edit lxrandr lxinput openbox obconf viewnior leafpad \ |
pankso@12461 | 15 slitaz-configs" |
pankso@2215 | 16 |
pankso@2215 | 17 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2215 | 18 genpkg_rules() |
pankso@2215 | 19 { |
pankso@12416 | 20 mkdir -p $fs/usr/bin $fs/usr/share/applications |
pankso@12416 | 21 install -m 0755 $stuff/lxde-session $fs/usr/bin |
pankso@12416 | 22 install -m 0755 $stuff/lxde-logout $fs/usr/bin |
pankso@12416 | 23 cp -a $stuff/xsessions $fs/usr/share |
pankso@12416 | 24 cp -a $stuff/lxde-logout.desktop $fs/usr/share/applications |
pankso@12416 | 25 chown -R 0.0 $fs |
pankso@2215 | 26 } |
pankso@12559 | 27 |
pankso@12559 | 28 # Add WM to SLIM available sessions. |
pankso@12559 | 29 post_install() |
pankso@12559 | 30 { |
slaxemulator@13571 | 31 local root |
slaxemulator@13571 | 32 root=$1 |
pankso@12559 | 33 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//) |
pankso@12559 | 34 if ! echo "$res" | grep -q $PACKAGE; then |
pankso@12559 | 35 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pankso@12559 | 36 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf |
pankso@12559 | 37 status |
pankso@12559 | 38 fi |
pankso@12559 | 39 } |
pankso@12559 | 40 |
pankso@12559 | 41 # Remove WM from SLIM available sessions. |
pankso@12559 | 42 post_remove() |
pankso@12559 | 43 { |
slaxemulator@13571 | 44 local root |
slaxemulator@13571 | 45 root=$1 |
pankso@12559 | 46 if grep -q $PACKAGE $root/etc/slim.conf; then |
pankso@12559 | 47 sed -i s/,$PACKAGE// $root/etc/slim.conf |
pankso@12559 | 48 fi |
pankso@12559 | 49 } |