wok-next annotate lxde/receipt @ rev 20495
make-slitaz-icons: fix previous commit
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 14 03:16:12 2018 +0200 (2018-03-14) |
parents | 0ed344a8daed |
children | f3b01def76fb |
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" |
pankso@3475 | 9 WEB_SITE="http://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@19844 | 23 DEPENDS="xorg-libX11 gtk+ lxpanel lxtask lxappearance lxsession pcmanfm \ |
al@19844 | 24 lxsession-edit lxrandr lxinput openbox obconf gpicview leafpad \ |
al@19844 | 25 slitaz-configs 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 } |