wok view mate/receipt @ rev 20235

busybox: add arch (uname -m alias)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 05 15:52:59 2018 +0100 (2018-03-05)
parents 669cf4ca1732
children 970c5ec9a60a
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 -n "Adding $PACKAGE to /etc/slim.conf..."
42 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf
43 status
44 fi
45 }
47 # Remove WM from SLIM available sessions.
48 post_remove()
49 {
50 local root
51 root=$1
52 if grep -q $PACKAGE $root/etc/slim.conf; then
53 sed -i s/,$PACKAGE// $root/etc/slim.conf
54 fi
55 }