# Maintainer: Sam Burgos <santiago.burgos1089@gmail.com>

#Included in Slint by Didier Spaier didieratslintdotfr
pkgname=lightdm-settings
pkgver=2.0.1
pkgrel=1slint
slackdesc="$pkgname (Configuration tool for the LightDM display manager)"
docs=("copying" "authors" "README.html")
options=("nosrcpack")
url="https://github.com/linuxmint/${pkgname}"
license=('GPL3')
depends=(
    'hicolor-icon-theme'
    'lightdm-slick-greeter'
    'polkit'
    'python-gobject'
    'python-setproctitle'
    'python-xapp'
)
optdepends=(
    'lightdm-guest: Enable guest session options'
)
source=("$url/archive/${pkgver}.tar.gz"
"start_graphically_with_gnsu_not_pkexec.diff")
sha256sums=('a44b62c18e64b7b9bbcc98e623c13b0ac94898974645e47d7afd272e98e0ae17')

build() {
  cd "$pkgname-$pkgver"
  patch -p1 --verbose < $SRC/start_graphically_with_gnsu_not_pkexec.diff || exit
[ -f README.md ] && pandoc -f gfm -t html5 -o README.html README.md
  make
  cp -r usr "$PKG"
}
