wok annotate mate/receipt @ rev 19842

gitso: update wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 13 12:09:18 2017 +0100 (2017-03-13)
parents 669cf4ca1732
children 970c5ec9a60a
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
pankso@19683 41 echo -n "Adding $PACKAGE to /etc/slim.conf..."
pankso@19683 42 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf
pankso@19683 43 status
pankso@19683 44 fi
pankso@19683 45 }
pankso@19683 46
pankso@19683 47 # Remove WM from SLIM available sessions.
pankso@19683 48 post_remove()
pankso@19683 49 {
pankso@19683 50 local root
pankso@19683 51 root=$1
pankso@19683 52 if grep -q $PACKAGE $root/etc/slim.conf; then
pankso@19683 53 sed -i s/,$PACKAGE// $root/etc/slim.conf
pankso@19683 54 fi
pankso@19683 55 }