# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=libva-utils
pkgver="2.0.0"
pkgrel=0
pkgdesc="Intel VA-API Media Applications and Scripts for libva"
url="https://github.com/01org/libva-utils"
arch="all"
license="custom"
makedepends="mesa-dev libva-dev autoconf automake libtool"
source="https://github.com/01org/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
options="!check"
builddir="${srcdir}/${pkgname}-${pkgver}"
build() {
	cd "$builddir"
	 ./autogen.sh \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-wayland \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-nls
	make
}

check(){
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}
sha512sums="6f6da5ca99745f78ad1ee9c7fa8c9d986a5a4360b8e7b01031fd33bfe3884075291c7596817824f7dbd310b07614b0633b60cf29195769e651e2e8c579d1d211  libva-utils-2.0.0.tar.bz2"
