wok-next view lxde/receipt @ rev 20495
make-slitaz-icons: fix previous commit
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 14 03:16:12 2018 +0200 (2018-03-14) |
parents | 0ed344a8daed |
children | f3b01def76fb |
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="http://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 gtk+ lxpanel lxtask lxappearance lxsession pcmanfm \
24 lxsession-edit lxrandr lxinput openbox obconf gpicview leafpad \
25 slitaz-configs 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 }