# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=slick-greeter
pkgver=2.0.6
pkgrel=0
pkgdesc="a slick-looking LightDM greeter"
url="https://github.com/linuxmint/slick-greeter"
# s390x: mainframe
arch="all !s390x"
license="GPL-3.0-only"
makedepends="libcanberra-dev lightdm-dev meson vala xapp-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/linuxmint/slick-greeter/archive/refs/tags/$pkgver.tar.gz"

build() {
	abuild-meson \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
5b2d2017a73f8d3f08ae8ca3d9957d0d93136f82293c5a891ddd8cb58e80081d7f08966eb4131d9b021f867e5c6e244823245da7cf77704eb723560be2ac3b5e  slick-greeter-2.0.6.tar.gz
"
