wok-next diff lxde/receipt @ rev 20420
linux-dev: up 4.9.76
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jan 11 15:21:05 2018 +0200 (2018-01-11) |
parents | 9e01bc6321ea |
children | c4e53a39395a |
line diff
1.1 --- a/lxde/receipt Sun Dec 20 15:13:45 2015 +0100 1.2 +++ b/lxde/receipt Thu Jan 11 15:21:05 2018 +0200 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="lxde" 1.8 VERSION="0.3.2.1" 1.9 @@ -7,14 +7,8 @@ 1.10 MAINTAINER="pankso@slitaz.org" 1.11 LICENSE="GPL2" 1.12 WEB_SITE="http://lxde.org/" 1.13 -TAGS="LXDE window-manager desktop" 1.14 HOST_ARCH="i486 arm" 1.15 1.16 -SUGGESTED="lxterminal lxdm lxshortcut xarchiver" 1.17 -DEPENDS="xorg-libX11 gtk+ lxpanel lxtask lxappearance lxsession pcmanfm \ 1.18 -lxsession-edit lxrandr lxinput openbox obconf gpicview leafpad slitaz-configs \ 1.19 -slitaz-tools-boxes" 1.20 - 1.21 # Rules to gen a SliTaz package suitable for Tazpkg. 1.22 genpkg_rules() 1.23 { 1.24 @@ -24,22 +18,24 @@ 1.25 cp -a $stuff/xsessions $fs/usr/share 1.26 cp -a $stuff/lxde-logout.desktop $fs/usr/share/applications 1.27 chown -R 0.0 $fs 1.28 + 1.29 + TAGS="LXDE window-manager desktop" 1.30 + SUGGESTED="lxterminal lxdm lxshortcut xarchiver" 1.31 + DEPENDS="xorg-libX11 gtk+ lxpanel lxtask lxappearance lxsession pcmanfm \ 1.32 + lxsession-edit lxrandr lxinput openbox obconf gpicview leafpad \ 1.33 + slitaz-configs slitaz-tools-boxes" 1.34 } 1.35 1.36 # Add WM to SLIM available sessions. 1.37 -post_install() 1.38 -{ 1.39 +post_install() { 1.40 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) 1.41 if ! echo "$res" | grep -q $PACKAGE; then 1.42 - echo -n "Adding $PACKAGE to /etc/slim.conf..." 1.43 - sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf" 1.44 - status 1.45 + sed -i "s/^sessions.*/sessions $res,$PACKAGE/" "$1/etc/slim.conf" 1.46 fi 1.47 } 1.48 1.49 # Remove WM from SLIM available sessions. 1.50 -post_remove() 1.51 -{ 1.52 +post_remove() { 1.53 if grep -q $PACKAGE $root/etc/slim.conf; then 1.54 sed -i s/,$PACKAGE// "$1/etc/slim.conf" 1.55 fi