wok-next view lxde/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | a3c581bf52b8 |
children | d5aab818505e |
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="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://lxde.org/"
11 # Rules to gen a SliTaz package suitable for Tazpkg.
12 genpkg_rules()
13 {
14 mkdir -p $fs/usr/bin $fs/usr/share/applications
15 install -m 0755 $stuff/lxde-session $fs/usr/bin
16 install -m 0755 $stuff/lxde-logout $fs/usr/bin
17 cp -a $stuff/xsessions $fs/usr/share
18 cp -a $stuff/lxde-logout.desktop $fs/usr/share/applications
19 chown -R 0.0 $fs
21 TAGS="LXDE window-manager desktop"
22 SUGGESTED="lxterminal lxdm lxshortcut xarchiver"
23 DEPENDS="xorg-libX11 gtk2 lxpanel lxtask lxappearance lxsession pcmanfm \
24 lxrandr lxinput openbox obconf gpicview leafpad slitaz-configs \
25 slitaz-tools-boxes"
26 }
28 # Add WM to SLIM available sessions.
29 post_install() {
30 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
31 if ! echo "$res" | grep -q $PACKAGE; then
32 sed -i "s/^sessions.*/sessions $res,$PACKAGE/" "$1/etc/slim.conf"
33 fi
34 }
36 # Remove WM from SLIM available sessions.
37 post_remove() {
38 if grep -q $PACKAGE $root/etc/slim.conf; then
39 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
40 fi
41 }