# $Id: PKGBUILD 150821 2012-02-23 07:20:15Z andyrtr $
# Contributor: Jan de Groot <jgc@archlinux.org>
# Maintainer: Gaetan Bisson <bisson@archlinux.org>

pkgname=xorg-xev
pkgver=1.2.0
pkgrel=1
pkgdesc='Print contents of X events'
url='http://xorg.freedesktop.org/'
arch=('i686' 'x86_64')
license=('custom')
depends=('libx11' 'libxrandr')
makedepends=('xorg-util-macros' 'xproto')
source=("http://xorg.freedesktop.org/archive/individual/app/xev-${pkgver}.tar.bz2")
sha1sums=('6b05706ed39382b5d08c5351c00ba7e127709eec')
groups=('xorg-apps' 'xorg')

build() {
	cd "${srcdir}/xev-${pkgver}"
	./configure --prefix=/usr
	make
}

package() {
	cd "${srcdir}/xev-${pkgver}"
	make DESTDIR="${pkgdir}" install
	install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}