# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=xprop
pkgver=1.2.5
pkgrel=0
pkgdesc="X11 property inspector"
url="https://cgit.freedesktop.org/xorg/app/xprop/"
arch="all"
license="X11 AND MIT"
depends=""
makedepends="libx11-dev util-macros"
subpackages="$pkgname-doc"
source="https://www.X.Org/archive/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="93cfa621fa76ca6e8e780a252c508380b6dc9db39b67bfca16bb9800f0d39110f5d18189409a8577ef79e98bf5eece17f5e23f2218ca72ae8bb04ee7b429d559  xprop-1.2.5.tar.bz2"