# Depends on: lightdm exo gobject-introspection

description="Gtk greeter for lightdm"
url="https://en.wikipedia.org/wiki/LightDM"
packager="tnut <tnut@nutyx.org>"
contributor="Rems, Dania"

name=lightdm-gtk-greeter
version=2.0.6
release=2

source=(https://launchpad.net/lightdm-gtk-greeter/"${version:0:3}"/$version/+download/$name-$version.tar.gz)

build() {

cd $name-$version
CFLAGS+=" -Wno-declaration-after-statement \
-Wno-error=deprecated-declarations"
./configure \
--prefix=/usr \
--libexecdir=/usr/lib/lightdm \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--with-libxklavier \
--enable-kill-on-sigterm \
--disable-libido \
--disable-libindicator \
--disable-static \
--docdir=/usr/share/doc/lightdm-gtk-greeter-$version

make
make DESTDIR=$PKG install
sed -i "s@#background=@background=/usr/share/backgrounds/nutyx/nutyx.jpg@" \
$PKG/etc/lightdm/lightdm-gtk-greeter.conf
}
