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