# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=xcb-proto
pkgver=1.13
pkgrel=0
pkgdesc="XCB protocol descriptions"
url="https://xcb.freedesktop.org/"
arch="noarch"
license="X11"
depends=""
makedepends="python3"
source="https://xcb.freedesktop.org/dist/$pkgname-$pkgver.tar.bz2"

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

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -m644 -Dt "$pkgdir"/usr/share/licenses/$pkgname/ COPYING
}
sha512sums="002aa2aa0ad503977e03419c6f136f1e3aa8c787916830ce6d6be8f81ca99edc1d8fc5f71ce8c592b490cc767bf6567695f0bafe55fe3f743076bcddbaac07f7  xcb-proto-1.13.tar.bz2"