wok-current rev 19683

Add: mate (a package to install all MATE desktop at once)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Feb 12 00:43:16 2017 +0100 (2017-02-12)
parents a5dc9fa5639c
children 2d70b04a7ddd
files mate/receipt mate/stuff/xsessions/MATE.desktop
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mate/receipt	Sun Feb 12 00:43:16 2017 +0100
     1.3 @@ -0,0 +1,53 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="mate"
     1.7 +VERSION="1.9.3"
     1.8 +CATEGORY="meta"
     1.9 +SHORT_DESC="MATE X11 Desktop Environement"
    1.10 +MAINTAINER="pankso@gmail.com"
    1.11 +LICENSE="GPL3"
    1.12 +WEB_SITE="http://www.mate-desktop.org/"
    1.13 +TAGS="MATE"
    1.14 +
    1.15 +SUGGESTED="mate-screensaver"
    1.16 +DEPENDS="mate-desktop mate-common mate-menus caja mate-panel \
    1.17 +mate-system-monitor mate-session-manager mate-control-center \
    1.18 +yuyo-gtk-theme mate-icon-theme"
    1.19 +
    1.20 +#
    1.21 +# This is a package to install a working MATE environment for users. They
    1.22 +# just should have to logout current session, use F1 in Slim and select 
    1.23 +# MATE to login. They must change WINDOW_MANAGER in applications.conf to
    1.24 +# make it persitent, manually or with GTK box from standard menu.
    1.25 +#
    1.26 +
    1.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.28 +genpkg_rules()
    1.29 +{
    1.30 +	mkdir -p $fs/usr/share
    1.31 +	cp -a $stuff/xsessions $fs/usr/share
    1.32 +	chown -R 0.0 $fs
    1.33 +}
    1.34 +
    1.35 +# Add WM to SLIM available sessions.
    1.36 +post_install()
    1.37 +{
    1.38 +	local root
    1.39 +	root=$1
    1.40 +	res=$(cat $root/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/" $root/etc/slim.conf
    1.44 +		status
    1.45 +	fi
    1.46 +}
    1.47 +
    1.48 +# Remove WM from SLIM available sessions.
    1.49 +post_remove()
    1.50 +{
    1.51 +	local root
    1.52 +	root=$1
    1.53 +	if grep -q $PACKAGE $root/etc/slim.conf; then
    1.54 +		sed -i s/,$PACKAGE// $root/etc/slim.conf
    1.55 +	fi
    1.56 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/mate/stuff/xsessions/MATE.desktop	Sun Feb 12 00:43:16 2017 +0100
     2.3 @@ -0,0 +1,9 @@
     2.4 +[Desktop Entry]
     2.5 +Encoding=UTF-8
     2.6 +Type=XSession
     2.7 +Name=MATE Desktop
     2.8 +Name[fr]=Bureau MATE
     2.9 +Name[pt]=Sessão MATE
    2.10 +Name[pt_BR]=Sessão MATE
    2.11 +Name[ru]=Рабочий стол MATE
    2.12 +Exec=mate-session