wok view mate/receipt @ rev 19746

compiz-plugins-extra: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 18 17:58:28 2017 +0100 (2017-02-18)
parents
children c47175d00df6
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 caja mate-panel \
14 mate-system-monitor mate-session-manager mate-control-center \
15 yuyo-gtk-theme mate-icon-theme"
17 #
18 # This is a package to install a working MATE environment for users. They
19 # just should have to logout current session, use F1 in Slim and select
20 # MATE to login. They must change WINDOW_MANAGER in applications.conf to
21 # make it persitent, manually or with GTK box from standard menu.
22 #
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/share
28 cp -a $stuff/xsessions $fs/usr/share
29 chown -R 0.0 $fs
30 }
32 # Add WM to SLIM available sessions.
33 post_install()
34 {
35 local root
36 root=$1
37 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
38 if ! echo "$res" | grep -q $PACKAGE; then
39 echo -n "Adding $PACKAGE to /etc/slim.conf..."
40 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf
41 status
42 fi
43 }
45 # Remove WM from SLIM available sessions.
46 post_remove()
47 {
48 local root
49 root=$1
50 if grep -q $PACKAGE $root/etc/slim.conf; then
51 sed -i s/,$PACKAGE// $root/etc/slim.conf
52 fi
53 }