wok-next annotate lxsession/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | 5669e8b3be70 |
rev | line source |
---|---|
al@19814 | 1 # SliTaz package receipt v2. |
pankso@12415 | 2 |
pankso@12415 | 3 PACKAGE="lxsession" |
al@19814 | 4 VERSION="0.5.3" |
pankso@12415 | 5 CATEGORY="x-window" |
al@19852 | 6 SHORT_DESC="Standard session manager used by LXDE" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
al@14907 | 8 LICENSE="GPL2" |
al@19852 | 9 WEB_SITE="https://wiki.lxde.org/en/LXSession" |
al@21017 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/lxde/lxsession.html" |
pankso@12415 | 11 |
al@19814 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19814 | 13 WGET_URL="$SF_MIRROR/lxde/$TARBALL" |
al@19814 | 14 |
al@19848 | 15 BUILD_DEPENDS="intltool xorg-libX11-dev polkit-dev vala libxslt docbook-xsl \ |
al@21017 | 16 automake gtk2-dev" |
al@14907 | 17 |
al@20534 | 18 compile_rules() { |
al@19848 | 19 # https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/lxsession |
al@19848 | 20 # Regenerate C sources from Vala code |
al@19848 | 21 rm *.stamp |
al@19848 | 22 autoreconf -fi |
al@19848 | 23 |
al@20534 | 24 ./configure $CONFIGURE_ARGS && |
al@20534 | 25 make && |
al@20534 | 26 make install || return 1 |
al@19814 | 27 |
al@19814 | 28 # customize desktop.conf for SliTaz |
al@19852 | 29 confdir="$install/etc/xdg/lxsession/LXDE" |
al@19852 | 30 mkdir -p $confdir |
al@19852 | 31 cp $src/data/desktop.conf.example $confdir/desktop.conf |
al@19814 | 32 sed -i ' |
al@19814 | 33 s|^\(terminal_manager/command\).*|\1=terminal|; |
al@19814 | 34 s|^\(launcher_manager/command\).*|\1=lxpanelctl|; |
al@19814 | 35 s|^\(window_manager\).*|\1=openbox|; |
al@19814 | 36 s|^#*\(iXft/Hinting\)|\1=1|; |
al@19848 | 37 s|^\(sNet/ThemeName\).*|\1=Paper|; |
al@19848 | 38 s|^\(sNet/IconThemeName\).*|\1=SliTaz-Paper|; |
al@19814 | 39 s|^\(sGtk/FontName\).*|\1=DejaVu Sans 10|; |
al@19814 | 40 s|^#*\(iGtk/ToolbarIconSize\).*|\1=2|; |
al@19814 | 41 s|^#*\(sGtk/CursorThemeName\).*|\1=slitaz-polar|; |
al@19852 | 42 ' $confdir/desktop.conf |
al@19814 | 43 |
al@19814 | 44 # change icon |
al@19814 | 45 sed -i 's|^Icon=.*$|Icon=session-properties|' \ |
al@19814 | 46 $install/usr/share/applications/lxsession-edit.desktop |
al@19852 | 47 |
al@19852 | 48 # config files examples |
al@19852 | 49 cp data/*.example $confdir |
al@19852 | 50 |
al@19854 | 51 # LXDE autostart file |
al@19854 | 52 touch $confdir/autostart |
pankso@12415 | 53 } |
pankso@12415 | 54 |
al@20534 | 55 genpkg_rules() { |
al@19814 | 56 copy @std |
al@21017 | 57 DEPENDS="atk cairo fontconfig freetype gdk-pixbuf glib gtk2 pango polkit \ |
al@19848 | 58 xorg-libX11 dbus-glib lsb-release" |
al@19852 | 59 CONFIG_FILES="/etc/xdg/lxsession/LXDE/desktop.conf \ |
al@19852 | 60 /etc/xdg/lxsession/LXDE/conffiles.conf" |
pankso@12415 | 61 } |