# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iceauth
pkgver=1.0.7
pkgrel=0
pkgdesc="X.Org ICE authority file utility"
url="http://xorg.freedesktop.org/"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
depends=""
makedepends="libice-dev"
source="http://www.x.org/releases/individual/app/iceauth-$pkgver.tar.bz2"

builddir="$srcdir/$pkgname-$pkgver"

check() {
	cd "$builddir"
	make check
}

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

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

sha512sums="4fe08b3137904c99219456716879cbdf5b49ca9bf390011ffb44b1e896f9a6e008b5f761346a533e682f5cfbf18d18a859c74ad4268ec8d40002ffb79c33bcd7  iceauth-1.0.7.tar.bz2"