SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "lxsession"

# SliTaz package receipt.

PACKAGE="lxsession"
VERSION="0.5.5"
CATEGORY="x-window"
SHORT_DESC="LXDE X session manager."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.lxde.org/"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="$SF_MIRROR/lxde/$TARBALL"

DEPENDS="dbus gtk+"
BUILD_DEPENDS="dbus-dev gtk+-dev libunique-dev polkit-dev"
SUGGESTED="lxsession-lxpolkit"

HOST_ARCH="i486 arm"

current_version()
{
    wget -O - https://sourceforge.net/projects/lxde/files/LXSession%20%28session%20manager%29/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure            \
        --sysconfdir=/etc    \
        $CONFIGURE_ARGS &&
    make -j 1 &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/lxsession/ui
    mkdir -p $fs/etc/xdg/lxsession/LXDE

    cp -a $install/usr/bin        $fs/usr
    cp -a $install/usr/libexec    $fs/usr
    cp -a $install/usr/share/lxsession/ui/lxsession*.ui    $fs/usr/share/lxsession/ui
    rm -f                $fs/usr/bin/lxpolkit
    # Use SliTaz Icon theme for lxsession-logout
    cp -a $stuff/desktop.conf    $fs/etc/xdg/lxsession/LXDE
    touch                 $fs/etc/xdg/lxsession/LXDE/autostart
    chown -R 0.0            $fs
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)