wok-current view mate/receipt @ rev 22333

Up mplayer (1.4)
author Richard Dunbar <mojo@slitaz.org>
date Fri Nov 15 08:58:24 2019 -0500 (2019-11-15)
parents c47175d00df6
children 73f36875e5a7
line source
1 # SliTaz package receipt.
3 PACKAGE="mate"
4 VERSION="1.9.3"
5 CATEGORY="meta"
6 SHORT_DESC="MATE X11 Desktop Environement"
7 MAINTAINER="pankso@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.mate-desktop.org/"
10 TAGS="MATE"
12 SUGGESTED="mate-screensaver"
13 DEPENDS="mate-desktop mate-common mate-menus mate-panel libmatemixer marco \
14 mate-system-monitor mate-session-manager mate-control-center mate-themes \
15 yuyo-gtk-theme mate-icon-theme mate-terminal caja atril eom"
17 # Buggy 20170226: engrampa
19 #
20 # This is a package to install a working MATE environment for users. They
21 # just should have to logout current session, use F1 in Slim and select
22 # MATE to login. They must change WINDOW_MANAGER in applications.conf to
23 # make it persitent, manually or with GTK box from standard menu.
24 #
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share
30 cp -a $stuff/xsessions $fs/usr/share
31 chown -R 0.0 $fs
32 }
34 # Add WM to SLIM available sessions.
35 post_install()
36 {
37 local root
38 root=$1
39 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
40 if ! echo "$res" | grep -q $PACKAGE; then
41 echo
42 echo -n "Adding $PACKAGE to /etc/slim.conf..."
43 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf
44 status
45 fi
46 }
48 # Remove WM from SLIM available sessions.
49 post_remove()
50 {
51 local root
52 root=$1
53 if grep -q $PACKAGE $root/etc/slim.conf; then
54 sed -i s/,$PACKAGE// $root/etc/slim.conf
55 fi
56 }