# seatd - Seat management, replacing logind
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=seatd
version=0.9.1
release=1
desc="Seat management, replacing logind"
url="https://sr.ht/~kennylevinsen/seatd/"
license="MIT"
depend="glibc"
makedepend="meson ninja"
source="https://git.sr.ht/~kennylevinsen/seatd/archive/0.9.1.tar.gz"
sha256="SKIP"

build() {
	cd "seatd-0.9.1"
	meson setup build \
		--prefix=/usr \
		--libdir=/usr/lib \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--buildtype=release \
		--wrap-mode=nodownload \
		-Db_lto=true
	ninja -C build -j"$JOBS"
}

package() {
	cd "seatd-0.9.1"
	DESTDIR="$pkgdir" ninja -C build install
}
