wok annotate mate/receipt @ rev 23911

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