summaryrefslogtreecommitdiff
path: root/user/seatd/APKBUILD
blob: 0217230f60724033a6a7d502b89901606a31f779 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: Sheila Aman <sheila@vulpine.house>
# Maintainer: Sheila Aman <sheila@vulpine.house>
pkgname=seatd
pkgver=0.6.4
pkgrel=0
pkgdesc="Seat management daemon and library"
url="https://git.sr.ht/~kennylevinsen/seatd"
arch="all"
license="MIT"
depends=""
makedepends="cmake elogind-dev meson ninja"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~kennylevinsen/seatd/archive/$pkgver.tar.gz"

build() {
	# https://todo.sr.ht/~kennylevinsen/seatd/10
	# https://www.openwall.com/lists/musl/2020/01/20/3
	export CFLAGS="$CFLAGS -Wno-error=overflow"

	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		-Dlogind=enabled \
		. output
	ninja -C output
}

check() {
# Add test instructions here.
:
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="0e2b23eca2e7978e3f914433caa6f84243a20487c6fe9fe3e42a7bf663a4a0872482aa334a3f5dc9b6625c565b408c3c78310b5575b9fb2e2919efdb9620ec57  seatd-0.6.4.tar.gz"