wok-next view lxsession/receipt @ rev 20785

gpgme: add gnupg, since build can not find gpgconf and gpg
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Jun 09 07:02:52 2018 +0000 (2018-06-09)
parents c4e53a39395a
children f3b01def76fb
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 LFS="http://www.linuxfromscratch.org/blfs/view/stable/lxde/lxsession.html"
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 compile_rules() {
19 # https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/lxsession
20 # Regenerate C sources from Vala code
21 rm *.stamp
22 autoreconf -fi
24 ./configure $CONFIGURE_ARGS &&
25 make &&
26 make install || return 1
28 # customize desktop.conf for SliTaz
29 confdir="$install/etc/xdg/lxsession/LXDE"
30 mkdir -p $confdir
31 cp $src/data/desktop.conf.example $confdir/desktop.conf
32 sed -i '
33 s|^\(terminal_manager/command\).*|\1=terminal|;
34 s|^\(launcher_manager/command\).*|\1=lxpanelctl|;
35 s|^\(window_manager\).*|\1=openbox|;
36 s|^#*\(iXft/Hinting\)|\1=1|;
37 s|^\(sNet/ThemeName\).*|\1=Paper|;
38 s|^\(sNet/IconThemeName\).*|\1=SliTaz-Paper|;
39 s|^\(sGtk/FontName\).*|\1=DejaVu Sans 10|;
40 s|^#*\(iGtk/ToolbarIconSize\).*|\1=2|;
41 s|^#*\(sGtk/CursorThemeName\).*|\1=slitaz-polar|;
42 ' $confdir/desktop.conf
44 # change icon
45 sed -i 's|^Icon=.*$|Icon=session-properties|' \
46 $install/usr/share/applications/lxsession-edit.desktop
48 # config files examples
49 cp data/*.example $confdir
51 # LXDE autostart file
52 touch $confdir/autostart
53 }
55 genpkg_rules() {
56 copy @std
57 DEPENDS="atk cairo fontconfig freetype gdk-pixbuf glib gtk+ pango polkit \
58 xorg-libX11 dbus-glib lsb-release"
59 PROVIDE="lxsession-edit"
60 CONFIG_FILES="/etc/xdg/lxsession/LXDE/desktop.conf \
61 /etc/xdg/lxsession/LXDE/conffiles.conf"
62 }