SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "lightdm"

# SliTaz package receipt.

PACKAGE="lightdm"
VERSION="1.5.3"
CATEGORY="system-tools"
SHORT_DESC="A lightweight display manager"
MAINTAINER="al.bobylev@gmail.com"
LICENSE="GPL3 LGPL3"
WEB_SITE="https://launchpad.net/lightdm"
HELP="https://wiki.archlinux.org/index.php/LightDM"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/canonical/lightdm/archive/refs/tags/$VERSION.tar.gz"

DEPENDS="libgcrypt libgio libxklavier pam xorg-libX11"
BUILD_DEPENDS="automake gobject-introspection-dev gtk-doc itstool
    libgcrypt-dev libtool libxklavier-dev pam-dev wget yelp-tools"

CONFIG_FILES="/etc/init/lightdm.conf /etc/lightdm/keys.conf \
/etc/lightdm/lightdm.conf /etc/lightdm/users.conf"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/Latest version is/!d;s|.*is ||'
}

# Rules to configure and make the package.
compile_rules()
{
    ./autogen.sh                        \
        --libexecdir=/usr/lib                \
        --sysconfdir=/etc                \
        --disable-static                \
        --enable-introspection                \
        --enable-liblightdm-gobject            \
        --disable-gtk-doc                \
        --with-greeter-session=lightdm-gtk-greeter    \
        $CONFIGURE_ARGS &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    mkdir -p $fs/usr/share/locale

    cp -a $install/etc        $fs
    cp -a $install/usr/bin        $fs/usr
    cp -a $install/usr/lib/lightdm    $fs/usr/lib
    cp -a $install/usr/lib/*.so*    $fs/usr/lib
    cp -a $install/usr/sbin        $fs/usr

    # localization
    # split off to lightdm-lang ?
    . $WOK/slitaz-i18n/stuff/locale-pack.conf
    for lang in $LOCALE_PACK
      do
        langf=$install/usr/share/locale/$lang
        [ -d $langf ] &&
        cp -a $langf        $fs/usr/share/locale
      done
}
5935 packages and 845883 files in cooking database (Sun Jun 2 00:46:56 2024)