# Contributor:
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=xcb-util-errors
pkgver=1.0
pkgrel=0
pkgdesc="XCB utility library for readable X errors"
url="https://xcb.freedesktop.org/"
arch="all"
license="MIT"
depends=""
makedepends="automake autoconf xcb-util-dev"
subpackages="$pkgname-dev"
source="https://xcb.freedesktop.org/dist/xcb-util-errors-$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="479b731b7056313955db9471d37416c4c9ab8c4574214fe20b3c0bcc1f57812fc343af6b0196814caaa6cc848dd120c70fab2f142902125cba63a8386d32179d  xcb-util-errors-1.0.tar.bz2"