# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libxxf86misc
pkgver=1.0.4
pkgrel=0
pkgdesc="X11 XFree86 miscellaneous extension library"
url="https://www.X.Org/"
arch="all"
license="X11"
subpackages="$pkgname-dev $pkgname-doc"
depends=""
makedepends="libx11-dev libxext-dev util-macros xorgproto-dev"
source="https://www.X.Org/releases/individual/lib/libXxf86misc-$pkgver.tar.bz2"
builddir="$srcdir/libXxf86misc-$pkgver"

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

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

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

sha512sums="1dbd51a51188a060f676b88e5d98809ea355f69933972ceb7721c83289b5bb94c1f7b889baa83209a5ed864e67dd8a4ed62f1393634e97cc99ce36a2cef447fb  libXxf86misc-1.0.4.tar.bz2"