# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
setvar pkgname = 'xauth'
setvar pkgver = '1.0.10'
setvar pkgrel = '1'
setvar pkgdesc = ""X.Org authorization settings program""
setvar url = ""http://xorg.freedesktop.org/""
setvar arch = ""all""
setvar options = ""!check""  # Requires unpackaged, unmaintained 'cmdtest' package
setvar license = ""custom""
setvar depends = """"
setvar makedepends = ""libxau-dev libxext-dev libxmu-dev libx11-dev util-macros""
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://www.x.org/releases/individual/app/xauth-$pkgver.tar.bz2""

setvar builddir = ""$srcdir/$pkgname-$pkgver""
proc build {
	cd $builddir
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

proc package {
	cd $builddir
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

setvar sha512sums = ""1ddcd80848c4efffc6d0a576177f92a3ce47eb871a6c7e2097d96491aec027404d437e0bd792714ef423989153a9644f5ff179bde4dfeb4b340636d642d5849f  xauth-1.0.10.tar.bz2""