wok-next annotate lxde/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children 5669e8b3be70
rev   line source
al@19844 1 # SliTaz package receipt v2.
pankso@2215 2
pankso@2215 3 PACKAGE="lxde"
pankso@12416 4 VERSION="0.3.2.1"
pankso@3475 5 CATEGORY="meta"
al@17992 6 SHORT_DESC="Meta-package for the Lightweight X11 Desktop Environement"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15379 8 LICENSE="GPL2"
al@20906 9 WEB_SITE="https://lxde.org/"
pankso@16269 10
al@21020 11 genpkg_rules() {
pankso@12416 12 mkdir -p $fs/usr/bin $fs/usr/share/applications
pankso@12416 13 install -m 0755 $stuff/lxde-session $fs/usr/bin
pankso@12416 14 install -m 0755 $stuff/lxde-logout $fs/usr/bin
pankso@12416 15 cp -a $stuff/xsessions $fs/usr/share
pankso@12416 16 cp -a $stuff/lxde-logout.desktop $fs/usr/share/applications
pankso@12416 17 chown -R 0.0 $fs
al@19844 18
al@19844 19 TAGS="LXDE window-manager desktop"
al@19844 20 SUGGESTED="lxterminal lxdm lxshortcut xarchiver"
al@21017 21 DEPENDS="xorg-libX11 gtk2 lxpanel lxtask lxappearance lxsession pcmanfm \
al@20858 22 lxrandr lxinput openbox obconf gpicview leafpad slitaz-configs \
al@20858 23 slitaz-tools-boxes"
pankso@2215 24 }
pankso@12559 25
pankso@12559 26 # Add WM to SLIM available sessions.
al@19844 27 post_install() {
pascal@18730 28 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
pankso@12559 29 if ! echo "$res" | grep -q $PACKAGE; then
al@19844 30 sed -i "s/^sessions.*/sessions $res,$PACKAGE/" "$1/etc/slim.conf"
pankso@12559 31 fi
pankso@12559 32 }
pankso@12559 33
pankso@12559 34 # Remove WM from SLIM available sessions.
al@19844 35 post_remove() {
pankso@12559 36 if grep -q $PACKAGE $root/etc/slim.conf; then
pascal@18730 37 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
pankso@12559 38 fi
pankso@12559 39 }