wok view mate/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | 970c5ec9a60a |
children |
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="https://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 }