wok-next view lxde/receipt @ rev 20869
mono: fix build on 32-bit
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 02 10:15:48 2018 +0300 (2018-07-02) |
parents | c4e53a39395a |
children | a3c581bf52b8 |
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 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 }