# $Id$
# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
# Contributor: Aaron Plattner <aplattner@nvidia.com>
# Contributor: Bart Verhoeven <bartverhoeven@live.com>

pkgname=vdpauinfo
pkgver=1.0
pkgrel=2
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')
depends=('libvdpau' 'libx11')
source=("http://people.freedesktop.org/~aplattner/vdpau/${pkgname}-${pkgver}.tar.gz"
        "http://people.freedesktop.org/~aplattner/vdpau/${pkgname}-${pkgver}.tar.gz.sig")
validpgpkeys=('BD68A042C603DDAD9AA354B0F56ACC8F09BA9635') # Aaron Plattner <aplattner@nvidia.com>
sha256sums=('4054960b7ae618c351ff1ce3e7831b5cbda964ae1fbf9969b7146404d3044bc4'
            'SKIP')

build() {
  cd "$srcdir"/$pkgname-$pkgver

  ./configure --prefix=/usr
  make
}

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