SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "lxdm"

# SliTaz package receipt.

PACKAGE="lxdm"
VERSION="0.5.3"
CATEGORY="x-window"
SHORT_DESC="GUI login manager for LXDE"
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL3"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="https://www.lxde.org/"
WGET_URL="$SF_MIRROR/lxde/$TARBALL"
TAGS="LXDE"

DEPENDS="xorg-libX11 gtk+ slitaz-configs"
BUILD_DEPENDS="xorg-dev gtk+-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/lxde/files/lxdm/ 2>/dev/null | \
    sed "/scope=\"row/!d;/$PACKAGE%20/!d;s|.*$PACKAGE%20||;s|/.*||;q"
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure \
        --libexecdir=/usr/lib/lxdm \
        --sysconfdir=/etc \
        --without-pam \
        $CONFIGURE_ARGS &&
    make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/etc $fs/usr/share
    cp -a $install/etc/lxdm $fs/etc
    cp -a $install/usr/lib $fs/usr
    cp -a $install/usr/sbin $fs/usr
    cp -a $install/usr/share/lxdm $fs/usr/share
    cp -a $stuff/init.d $fs/etc
    # Use /bin/sh
    sed -i s'/bin\/bash/bin\/sh/' $fs/etc/lxdm/*
    # Custom SliTaz configuration
    # NOTE: will move to slitaz-configs when we have a nice theme
    cp -a $stuff/lxdm.conf $fs/etc/lxdm
    cp -a $stuff/Xsession $fs/etc/lxdm
    cp -a $stuff/PostLogout $fs/etc/lxdm
    chown -R root.root $fs
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)