wok-next view lxsession/receipt @ rev 20204
libjreen: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 03 22:50:48 2017 +0100 (2017-11-03) |
parents | 77529bc3b589 |
children | c4e53a39395a |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lxsession"
4 VERSION="0.5.3"
5 CATEGORY="x-window"
6 SHORT_DESC="Standard session manager used by LXDE"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://wiki.lxde.org/en/LXSession"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
15 BUILD_DEPENDS="intltool xorg-libX11-dev polkit-dev vala libxslt docbook-xsl \
16 automake gtk+-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # http://www.linuxfromscratch.org/blfs/view/stable/lxde/lxsession.html
23 # https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/lxsession
24 # Regenerate C sources from Vala code
25 rm *.stamp
26 autoreconf -fi
28 ./configure \
29 --sysconfdir=/etc \
30 $CONFIGURE_ARGS &&
31 make && make install || return 1
33 # customize desktop.conf for SliTaz
34 confdir="$install/etc/xdg/lxsession/LXDE"
35 mkdir -p $confdir
36 cp $src/data/desktop.conf.example $confdir/desktop.conf
37 sed -i '
38 s|^\(terminal_manager/command\).*|\1=terminal|;
39 s|^\(launcher_manager/command\).*|\1=lxpanelctl|;
40 s|^\(window_manager\).*|\1=openbox|;
41 s|^#*\(iXft/Hinting\)|\1=1|;
42 s|^\(sNet/ThemeName\).*|\1=Paper|;
43 s|^\(sNet/IconThemeName\).*|\1=SliTaz-Paper|;
44 s|^\(sGtk/FontName\).*|\1=DejaVu Sans 10|;
45 s|^#*\(iGtk/ToolbarIconSize\).*|\1=2|;
46 s|^#*\(sGtk/CursorThemeName\).*|\1=slitaz-polar|;
47 ' $confdir/desktop.conf
49 # change icon
50 sed -i 's|^Icon=.*$|Icon=session-properties|' \
51 $install/usr/share/applications/lxsession-edit.desktop
53 # config files examples
54 cp data/*.example $confdir
56 # LXDE autostart file
57 touch $confdir/autostart
58 }
60 # Rules to gen a SliTaz package suitable for Tazpkg.
61 genpkg_rules()
62 {
63 copy @std
64 DEPENDS="atk cairo fontconfig freetype gdk-pixbuf glib gtk+ pango polkit \
65 xorg-libX11 dbus-glib lsb-release"
66 PROVIDE="lxsession-edit"
67 CONFIG_FILES="/etc/xdg/lxsession/LXDE/desktop.conf \
68 /etc/xdg/lxsession/LXDE/conffiles.conf"
69 }