jobextra/seatd/PKGBUILD
2023-08-19 02:38:52 +03:00

57 lines
1.8 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=seatd
pkgver=0.8.0
pkgrel=01
pkgdesc="A minimal seat management daemon, and a universal seat management library"
url="https://sr.ht/~kennylevinsen/seatd/"
provides=("libseat.so")
replaces=("libseat")
makedepends=('meson' 'ninja' 'scdoc')
source=("$pkgname-$pkgver.tar.gz::https://git.sr.ht/~kennylevinsen/seatd/archive/$pkgver.tar.gz"
"sysuser.conf")
build() {
mkdir build
meson --prefix=/usr \
--buildtype=plain \
-Dexamples="disabled" \
-Dserver="enabled" \
-Dlibseat-logind="disabled" \
-Dman-pages="enabled" \
"$pkgname-$pkgver" \
build
ninja -C build
}
check() {
ninja -C build test
}
package() {
DESTDIR="$pkgdir/" ninja -C build install
install -Dm644 "$pkgname-$pkgver/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
# # Allow users in the "seat" group to access seatd, and provide a service
# # that will be necessary for e.g. wlroots-based seat management
# install -Dm644 "seatd-$pkgver/contrib/systemd/seatd.service" \
# -t "$pkgdir/usr/lib/systemd/system/"
install -Dm644 "sysuser.conf" "$pkgdir/usr/lib/sysusers.d/seatd.conf"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('MIT')
sha256sums=(a562a44ee33ccb20954a1c1ec9a90ecb2db7a07ad6b18d0ac904328efbcf65a0 # seatd-0.8.0.tar.gz
e833292adf5da25b5258a5209c258f0e4c12e1d6fe81cf228fd0cfb575080d78) # sysuser.conf
## 5d722f2383252626df8a88646804fc7afa375dd92e5745be8b49e07463850c91 seatd-0.8.0-01-x86_64.pkg.tar.lz