wok-6.x view lxde/receipt @ rev 14628

Up: subversion to 1.7.8.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Jun 01 20:48:23 2013 +0000 (2013-06-01)
parents 4c7322d54d65
children 2a5cc8208d36
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 local root
31 root=$1
32 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
33 if ! echo "$res" | grep -q $PACKAGE; then
34 echo -n "Adding $PACKAGE to /etc/slim.conf..."
35 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf
36 status
37 fi
38 }
40 # Remove WM from SLIM available sessions.
41 post_remove()
42 {
43 local root
44 root=$1
45 if grep -q $PACKAGE $root/etc/slim.conf; then
46 sed -i s/,$PACKAGE// $root/etc/slim.conf
47 fi
48 }