wok-6.x annotate lxde/receipt @ rev 16457

Fix: gtk+ must have clearlooks installed or it will be ugly + lxde install pcmanfm and slitaz-tools-boxes so noe installing one (lxde) package users got the a full working desktop
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 19 22:01:40 2014 +0200 (2014-04-19)
parents 62b66edb40b5
children 5d53e8ccbc8d
rev   line source
pankso@2215 1 # SliTaz package receipt.
pankso@2215 2
pankso@2215 3 PACKAGE="lxde"
pankso@12416 4 VERSION="0.3.2.1"
pankso@3475 5 CATEGORY="meta"
pankso@12416 6 SHORT_DESC="LXDE desktop environement meta package with SliTaz integration."
pankso@2215 7 MAINTAINER="pankso@slitaz.org"
pascal@15379 8 LICENSE="GPL2"
pankso@3475 9 WEB_SITE="http://lxde.org/"
pankso@3475 10 TAGS="wm desktop"
pankso@16269 11 HOST_ARCH="i486 arm"
pankso@16269 12
pankso@16457 13 SUGGESTED="lxterminal lxdm"
pankso@16457 14 DEPENDS="xorg-libX11 gtk+ lxpanel lxtask lxappearance lxsession pcmanfm \
pankso@16457 15 lxsession-edit lxrandr lxinput openbox obconf gpicview leafpad slitaz-configs
pankso@16457 16 slitaz-tools-boxes"
pankso@2215 17
pankso@2215 18 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2215 19 genpkg_rules()
pankso@2215 20 {
pankso@12416 21 mkdir -p $fs/usr/bin $fs/usr/share/applications
pankso@12416 22 install -m 0755 $stuff/lxde-session $fs/usr/bin
pankso@12416 23 install -m 0755 $stuff/lxde-logout $fs/usr/bin
pankso@12416 24 cp -a $stuff/xsessions $fs/usr/share
pankso@12416 25 cp -a $stuff/lxde-logout.desktop $fs/usr/share/applications
pankso@12416 26 chown -R 0.0 $fs
pankso@2215 27 }
pankso@12559 28
pankso@12559 29 # Add WM to SLIM available sessions.
pankso@12559 30 post_install()
pankso@12559 31 {
slaxemulator@13571 32 local root
slaxemulator@13571 33 root=$1
pankso@12559 34 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
pankso@12559 35 if ! echo "$res" | grep -q $PACKAGE; then
pankso@12559 36 echo -n "Adding $PACKAGE to /etc/slim.conf..."
pankso@12559 37 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf
pankso@12559 38 status
pankso@12559 39 fi
pankso@12559 40 }
pankso@12559 41
pankso@12559 42 # Remove WM from SLIM available sessions.
pankso@12559 43 post_remove()
pankso@12559 44 {
slaxemulator@13571 45 local root
slaxemulator@13571 46 root=$1
pankso@12559 47 if grep -q $PACKAGE $root/etc/slim.conf; then
pankso@12559 48 sed -i s/,$PACKAGE// $root/etc/slim.conf
pankso@12559 49 fi
pankso@12559 50 }