# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=xsetroot
pkgver=1.1.2
pkgrel=0
pkgdesc="Set the root window (desktop background) of an X11 session"
url="https://www.X.Org/"
arch="all"
license="MIT"
depends=""
makedepends="libx11-dev libxcursor-dev libxmu-dev util-macros xbitmaps"
subpackages="$pkgname-doc"
source="https://www.X.Org/releases/individual/app/$pkgname-$pkgver.tar.bz2"

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

check() {
	make check
}

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

sha512sums="0b9df1b72305e5c24f1e1664578aa4411a5ffcdc5d318458117594e641f01c34700205b0d16c08abf4a8106d36128ccdbe1ea1f1035fce9018d6b52801a8b72b  xsetroot-1.1.2.tar.bz2"