# Description: A minimal seat management daemon, and a universal seat management library
# URL: https://git.sr.ht/~kennylevinsen/seatd
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: meson ninja
# Optional: scdoc

name=seatd
version=0.7.0
release=1
source=(https://github.com/kennylevinsen/seatd/archive/$version/$name-$version.tar.gz
  seatd.service)

build() {
  meson setup $name-$version build \
    --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true \
    -D libseat-builtin=enabled
  meson compile -C build
  DESTDIR=$PKG meson install -C build

  install -Dm 755 $SRC/seatd.service $PKG/etc/rc.d/seatd
}
