wok-6.x view lxde/receipt @ rev 25287
updated rsync (3.2.3 -> 3.2.4)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 18 17:50:55 2022 +0100 (2022-07-18) |
parents | 6e8b1bcb30e2 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="lxde"
4 VERSION="0.3.2.1"
5 CATEGORY="meta"
6 SHORT_DESC="Meta-package for the Lightweight X11 Desktop Environement"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://lxde.org/"
10 TAGS="LXDE window-manager desktop"
11 HOST_ARCH="i486 arm"
13 SUGGESTED="lxterminal lxdm lxshortcut xarchiver"
14 # hack DEPENDS with lxsession046 (lxsession needs consolekit)
15 DEPENDS="xorg-libX11 gtk+ lxpanel lxtask lxappearance lxsession046 pcmanfm \
16 lxsession-edit lxrandr lxinput openbox obconf gpicview leafpad slitaz-configs \
17 slitaz-tools-boxes"
19 # Rules to gen a SliTaz package suitable for Tazpkg.
20 genpkg_rules()
21 {
22 mkdir -p $fs/usr/bin $fs/usr/share/applications
23 install -m 0755 $stuff/lxde-session $fs/usr/bin
24 install -m 0755 $stuff/lxde-logout $fs/usr/bin
25 cp -a $stuff/xsessions $fs/usr/share
26 cp -a $stuff/lxde-logout.desktop $fs/usr/share/applications
27 chown -R 0.0 $fs
28 }
30 # Add WM to SLIM available sessions.
31 post_install()
32 {
33 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
34 if ! echo "$res" | grep -q $PACKAGE; then
35 echo
36 echo -n "Adding $PACKAGE to /etc/slim.conf..."
37 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
38 status
39 fi
40 }
42 # Remove WM from SLIM available sessions.
43 post_remove()
44 {
45 if grep -q $PACKAGE $root/etc/slim.conf; then
46 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
47 fi
48 }