wok-next view lxsession/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 | 4c0c885152f4 |
children | 757d032c55c7 |
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"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$SF_MIRROR/lxde/$TARBALL"
14 BUILD_DEPENDS="intltool xorg-libX11-dev polkit-dev vala libxslt docbook-xsl \
15 automake gtk+-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # http://www.linuxfromscratch.org/blfs/view/stable/lxde/lxsession.html
22 # https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/lxsession
23 # Regenerate C sources from Vala code
24 rm *.stamp
25 autoreconf -fi
27 ./configure \
28 --sysconfdir=/etc \
29 $CONFIGURE_ARGS &&
30 make && make install || return 1
32 # customize desktop.conf for SliTaz
33 confdir="$install/etc/xdg/lxsession/LXDE"
34 mkdir -p $confdir
35 cp $src/data/desktop.conf.example $confdir/desktop.conf
36 sed -i '
37 s|^\(terminal_manager/command\).*|\1=terminal|;
38 s|^\(launcher_manager/command\).*|\1=lxpanelctl|;
39 s|^\(window_manager\).*|\1=openbox|;
40 s|^#*\(iXft/Hinting\)|\1=1|;
41 s|^\(sNet/ThemeName\).*|\1=Paper|;
42 s|^\(sNet/IconThemeName\).*|\1=SliTaz-Paper|;
43 s|^\(sGtk/FontName\).*|\1=DejaVu Sans 10|;
44 s|^#*\(iGtk/ToolbarIconSize\).*|\1=2|;
45 s|^#*\(sGtk/CursorThemeName\).*|\1=slitaz-polar|;
46 ' $confdir/desktop.conf
48 # change icon
49 sed -i 's|^Icon=.*$|Icon=session-properties|' \
50 $install/usr/share/applications/lxsession-edit.desktop
52 # config files examples
53 cp data/*.example $confdir
55 # LXDE autostart file
56 touch $confdir/autostart
57 }
59 # Rules to gen a SliTaz package suitable for Tazpkg.
60 genpkg_rules()
61 {
62 copy @std
63 DEPENDS="atk cairo fontconfig freetype gdk-pixbuf glib gtk+ pango polkit \
64 xorg-libX11 dbus-glib lsb-release"
65 PROVIDE="lxsession-edit"
66 CONFIG_FILES="/etc/xdg/lxsession/LXDE/desktop.conf \
67 /etc/xdg/lxsession/LXDE/conffiles.conf"
68 }