wok view lxde/receipt @ rev 16160

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