# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libvdpau pkgver=0.9 pkgrel=0 pkgdesc="Nvidia VDPAU library" url="http://cgit.freedesktop.org/~aplattner/libvdpau" arch="all" license="custom" depends= makedepends="libx11-dev dri2proto libxext-dev" install= subpackages="$pkgname-dev $pkgname-doc" source="http://people.freedesktop.org/~aplattner/vdpau/${pkgname}-${pkgver}.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" # apply patches here } build() { cd "$_builddir" LIBS="-lX11" \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/vdpau/*.la \ "$pkgdir"/usr/lib/*.la || return 1 install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}" install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1 } md5sums="3a1f8f3ec6e6adcfbc6044c8f00d7d51 libvdpau-0.9.tar.gz" sha256sums="e32957140835a545a01a3972db1143e01174db3d9c0017e51f6a3bf8b09c0e6e libvdpau-0.9.tar.gz" sha512sums="8e69712a91e17c3388742f2a4c0a8887113fe06a81dbedf1faa7fc3985a289cd067a9134399f9747fd4b3b1499c46e7871a3b34f74f6e9c95b07ea877739e51f libvdpau-0.9.tar.gz"