# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xev
pkgver=1.2.6
pkgrel=0
pkgdesc="Print contents of X events"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
makedepends="libx11-dev libxrandr-dev"
source="https://www.x.org/releases/individual/app/xev-$pkgver.tar.xz"

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

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

sha512sums="
aaabb635622abfbf0b7ef2a1978070a918ea94480f375dd0798375274cf378ddb25007cc42426bb2292ed65c8af922f88e6a04c5a2f6cff3fadb0194b53eb7e7  xev-1.2.6.tar.xz
"
