# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sessreg
pkgver=1.1.3
pkgrel=2
pkgdesc="manage utmp/wtmp entries for non-init clients"
options="!check" # No testsuite
url="https://wiki.freedesktop.org/xorg/"
arch="all"
license="ICU"
subpackages="$pkgname-doc"
makedepends="bsd-compat-headers linux-headers xorgproto"
source="https://www.x.org/releases/individual/app/sessreg-$pkgver.tar.xz
	missing_path_wtmpx.patch"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
bc1e83afc598ac5b4c6ab0861799b6c8727c123ee662c1fb9cbdd9ee926973b7a00cc62e32f6b4e462c0da3516f8b824337d9cf17587ebabd3f4753502641a60  sessreg-1.1.3.tar.xz
57a7dea5f0f9d8c3f54aa3aeb98f6fa8cd44e9d7397c81ad40e973ad3a548b7137a986bda6367df5d867d2b1e6d8eacdd182fcf920ea9d1e8c70cc64f40651df  missing_path_wtmpx.patch
"
