wok view lxde/receipt @ rev 13560

lxde: remove pcmanfm from deps we can use spacefm in place
author Christophe Lincoln <pankso@slitaz.org>
date Sat Nov 03 10:51:02 2012 +0100 (2012-11-03)
parents b777c584c6f1
children 83966e88a5da
line source
1 # SliTaz package receipt.
3 PACKAGE="lxde"
4 VERSION="0.3.2.1"
5 CATEGORY="meta"
6 SHORT_DESC="LXDE desktop environement meta package with SliTaz integration."
7 MAINTAINER="pankso@slitaz.org"
8 WEB_SITE="http://lxde.org/"
9 TAGS="wm desktop"
10 SUGGESTED="lxterminal lxdm pcmanfm"
12 DEPENDS="xorg-libX11 gtk+ lxpanel lxtask lxappearance lxsession
13 lxsession-edit lxrandr lxinput openbox obconf viewnior leafpad \
14 slitaz-configs"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 mkdir -p $fs/usr/bin $fs/usr/share/applications
20 install -m 0755 $stuff/lxde-session $fs/usr/bin
21 install -m 0755 $stuff/lxde-logout $fs/usr/bin
22 cp -a $stuff/xsessions $fs/usr/share
23 cp -a $stuff/lxde-logout.desktop $fs/usr/share/applications
24 chown -R 0.0 $fs
25 }
27 # Add WM to SLIM available sessions.
28 post_install()
29 {
30 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
31 if ! echo "$res" | grep -q $PACKAGE; then
32 echo -n "Adding $PACKAGE to /etc/slim.conf..."
33 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf
34 status
35 fi
36 }
38 # Remove WM from SLIM available sessions.
39 post_remove()
40 {
41 if grep -q $PACKAGE $root/etc/slim.conf; then
42 sed -i s/,$PACKAGE// $root/etc/slim.conf
43 fi
44 }