wok-next view lxde/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children 5669e8b3be70
line source
1 # SliTaz package receipt v2.
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="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://lxde.org/"
11 genpkg_rules() {
12 mkdir -p $fs/usr/bin $fs/usr/share/applications
13 install -m 0755 $stuff/lxde-session $fs/usr/bin
14 install -m 0755 $stuff/lxde-logout $fs/usr/bin
15 cp -a $stuff/xsessions $fs/usr/share
16 cp -a $stuff/lxde-logout.desktop $fs/usr/share/applications
17 chown -R 0.0 $fs
19 TAGS="LXDE window-manager desktop"
20 SUGGESTED="lxterminal lxdm lxshortcut xarchiver"
21 DEPENDS="xorg-libX11 gtk2 lxpanel lxtask lxappearance lxsession pcmanfm \
22 lxrandr lxinput openbox obconf gpicview leafpad slitaz-configs \
23 slitaz-tools-boxes"
24 }
26 # Add WM to SLIM available sessions.
27 post_install() {
28 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
29 if ! echo "$res" | grep -q $PACKAGE; then
30 sed -i "s/^sessions.*/sessions $res,$PACKAGE/" "$1/etc/slim.conf"
31 fi
32 }
34 # Remove WM from SLIM available sessions.
35 post_remove() {
36 if grep -q $PACKAGE $root/etc/slim.conf; then
37 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
38 fi
39 }