# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=xlsatoms
pkgver=1.1.2
pkgrel=0
pkgdesc="List interned atoms in an X11 server"
url="https://www.X.Org/"
arch="all"
license="X11"
depends=""
makedepends="libxcb-dev util-macros"
subpackages="$pkgname-doc"
source="https://www.x.org/releases/individual/app/xlsatoms-$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="f29001de22818792212312f1b9daee1bf7afa2ef2ae945cd8c14bdc1a7bb40064d3878c5efea60458ac0bf515ab1ece16fa90cbd2b0a879a5f07f3aa3e6a0baa  xlsatoms-1.1.2.tar.bz2"