wok view lxde/receipt @ rev 16319
ARM: add mpfr + mpc-library (to cook native ARM gcc) and try to fix glib (gtk crashe are from libgobject-2.0.so.0)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 09 20:51:15 2014 +0200 (2014-04-09) |
parents | 2a5cc8208d36 |
children | 0058a2fc42a9 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lxde"
4 VERSION="0.3.2.1"
5 CATEGORY="meta"
6 SHORT_DESC="LXDE desktop environement meta package with SliTaz integration."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://lxde.org/"
10 TAGS="wm desktop"
11 HOST_ARCH="i486 arm"
13 SUGGESTED="lxterminal lxdm pcmanfm"
14 DEPENDS="xorg-libX11 gtk+ lxpanel lxtask lxappearance lxsession \
15 lxsession-edit lxrandr lxinput openbox obconf gpicview leafpad \
16 slitaz-configs"
18 # Rules to gen a SliTaz package suitable for Tazpkg.
19 genpkg_rules()
20 {
21 mkdir -p $fs/usr/bin $fs/usr/share/applications
22 install -m 0755 $stuff/lxde-session $fs/usr/bin
23 install -m 0755 $stuff/lxde-logout $fs/usr/bin
24 cp -a $stuff/xsessions $fs/usr/share
25 cp -a $stuff/lxde-logout.desktop $fs/usr/share/applications
26 chown -R 0.0 $fs
27 }
29 # Add WM to SLIM available sessions.
30 post_install()
31 {
32 local root
33 root=$1
34 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
35 if ! echo "$res" | grep -q $PACKAGE; then
36 echo -n "Adding $PACKAGE to /etc/slim.conf..."
37 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf
38 status
39 fi
40 }
42 # Remove WM from SLIM available sessions.
43 post_remove()
44 {
45 local root
46 root=$1
47 if grep -q $PACKAGE $root/etc/slim.conf; then
48 sed -i s/,$PACKAGE// $root/etc/slim.conf
49 fi
50 }