wok-next annotate lxde/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | a3c581bf52b8 |
children | d5aab818505e |
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" |
pankso@2215 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15379 | 8 LICENSE="GPL2" |
al@20906 | 9 WEB_SITE="https://lxde.org/" |
pankso@16269 | 10 |
pankso@2215 | 11 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2215 | 12 genpkg_rules() |
pankso@2215 | 13 { |
pankso@12416 | 14 mkdir -p $fs/usr/bin $fs/usr/share/applications |
pankso@12416 | 15 install -m 0755 $stuff/lxde-session $fs/usr/bin |
pankso@12416 | 16 install -m 0755 $stuff/lxde-logout $fs/usr/bin |
pankso@12416 | 17 cp -a $stuff/xsessions $fs/usr/share |
pankso@12416 | 18 cp -a $stuff/lxde-logout.desktop $fs/usr/share/applications |
pankso@12416 | 19 chown -R 0.0 $fs |
al@19844 | 20 |
al@19844 | 21 TAGS="LXDE window-manager desktop" |
al@19844 | 22 SUGGESTED="lxterminal lxdm lxshortcut xarchiver" |
al@21017 | 23 DEPENDS="xorg-libX11 gtk2 lxpanel lxtask lxappearance lxsession pcmanfm \ |
al@20858 | 24 lxrandr lxinput openbox obconf gpicview leafpad slitaz-configs \ |
al@20858 | 25 slitaz-tools-boxes" |
pankso@2215 | 26 } |
pankso@12559 | 27 |
pankso@12559 | 28 # Add WM to SLIM available sessions. |
al@19844 | 29 post_install() { |
pascal@18730 | 30 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
pankso@12559 | 31 if ! echo "$res" | grep -q $PACKAGE; then |
al@19844 | 32 sed -i "s/^sessions.*/sessions $res,$PACKAGE/" "$1/etc/slim.conf" |
pankso@12559 | 33 fi |
pankso@12559 | 34 } |
pankso@12559 | 35 |
pankso@12559 | 36 # Remove WM from SLIM available sessions. |
al@19844 | 37 post_remove() { |
pankso@12559 | 38 if grep -q $PACKAGE $root/etc/slim.conf; then |
pascal@18730 | 39 sed -i s/,$PACKAGE// "$1/etc/slim.conf" |
pankso@12559 | 40 fi |
pankso@12559 | 41 } |