# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=xmessage
pkgver=1.0.5
pkgrel=0
pkgdesc="Display a message or query in a window"
url="https://www.X.Org/"
arch="all"
license="X11"
makedepends="libx11-dev libxaw-dev util-macros"
subpackages="$pkgname-doc"
source="https://www.X.Org/releases/individual/app/${pkgname}-${pkgver}.tar.bz2"

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

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

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

sha512sums="a8423c3986b1576fa67800c315a605a527bb9a8f594ac269a736ae7b91eed0d4d83deb89148197dc3cd3f0e51894146958ce2979f78e97dcdb99c5326e34dabe  xmessage-1.0.5.tar.bz2"