# Maintainer: Bart Verhoeven <nepherte at gmail dot com>
pkgname=vdpauinfo
pkgver=0.0.6
pkgrel=6
pkgdesc="Command line utility for querying the capabilities of a VDPAU device."
arch=('i686' 'x86_64')
url="http://cgit.freedesktop.org/~aplattner/vdpauinfo"
license=('custom')
changelog=$pkgname.changelog
depends=('libvdpau' 'libxfixes')
source=('http://cgit.freedesktop.org/~aplattner/vdpauinfo/snapshot/vdpauinfo-0.0.6.tar.bz2')
sha256sums=('9a81a13780cbf668ac7d6d6449a4f12857891775cc945ffa9ff27f8ffd102b25')

build() {
  cd $srcdir/$pkgname-$pkgver
 
  autoreconf -i 

  ./configure --prefix=/usr VDPAU_CFLAGS=-I/usr/include \
  VDPAU_LIBS=-lvdpau LIBS=-lX11
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR="$pkgdir" install
  install -D -m644 $srcdir/$pkgname-$pkgver/LICENSE $pkgdir/usr/share/licenses/$pkgname/license
}