wok-6.x diff mate/receipt @ rev 19734

libdb: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 17 14:52:48 2017 +0100 (2017-02-17)
parents
children c47175d00df6
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mate/receipt	Fri Feb 17 14:52:48 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 +}