# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xhost
pkgver=1.0.10
pkgrel=0
pkgdesc="Controls host and/or user access to a running X server"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
makedepends="libx11-dev libxmu-dev libxau-dev util-macros"
source="https://www.x.org/releases/individual/app/xhost-$pkgver.tar.xz"

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

check() {
	make check
}

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

sha512sums="
65467b0a096455dae681f8397f5b8b0490a2f80db5cb9f92757cfff8d7822b43833202a275eed8467c6a6aaf3b02e0a7b1a069c5d587d32e56b1893297903051  xhost-1.0.10.tar.xz
"
