wok-next view lxde/receipt @ rev 20454
Choose between libpng16 and libpng12
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 17:32:31 2018 +0200 (2018-02-28) |
parents | 9e01bc6321ea |
children | c4e53a39395a |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lxde"
4 VERSION="0.3.2.1"
5 CATEGORY="meta"
6 SHORT_DESC="Meta-package for the Lightweight X11 Desktop Environement"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://lxde.org/"
10 HOST_ARCH="i486 arm"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 mkdir -p $fs/usr/bin $fs/usr/share/applications
16 install -m 0755 $stuff/lxde-session $fs/usr/bin
17 install -m 0755 $stuff/lxde-logout $fs/usr/bin
18 cp -a $stuff/xsessions $fs/usr/share
19 cp -a $stuff/lxde-logout.desktop $fs/usr/share/applications
20 chown -R 0.0 $fs
22 TAGS="LXDE window-manager desktop"
23 SUGGESTED="lxterminal lxdm lxshortcut xarchiver"
24 DEPENDS="xorg-libX11 gtk+ lxpanel lxtask lxappearance lxsession pcmanfm \
25 lxsession-edit lxrandr lxinput openbox obconf gpicview leafpad \
26 slitaz-configs slitaz-tools-boxes"
27 }
29 # Add WM to SLIM available sessions.
30 post_install() {
31 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
32 if ! echo "$res" | grep -q $PACKAGE; then
33 sed -i "s/^sessions.*/sessions $res,$PACKAGE/" "$1/etc/slim.conf"
34 fi
35 }
37 # Remove WM from SLIM available sessions.
38 post_remove() {
39 if grep -q $PACKAGE $root/etc/slim.conf; then
40 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
41 fi
42 }