# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=xauth
pkgver=1.1
pkgrel=0
pkgdesc="X.Org authorisation settings program"
url="https://www.X.Org/"
arch="all"
options="!check"  # Requires unpackaged, unmaintained 'cmdtest' package
license="X11"
depends=""
makedepends="libx11-dev libxau-dev libxext-dev libxmu-dev util-macros"
subpackages="$pkgname-doc"
source="https://www.X.Org/releases/individual/app/xauth-$pkgver.tar.bz2"

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

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

sha512sums="b6ecd59a853a491ef45bf8cfbff63bed36645f81cb79ae9d18458b57f7502bccf92f0d979d3337578518646f680ad379e67b1dac15a927cbb11372733e7a3a0c  xauth-1.1.tar.bz2"