summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f6ba8d82fc0c981d544c37739eb0dc88e8dfaf67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer:  Vincent Grande <shoober420@gmail.com>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=libvdpau-git
pkgver=1.4
pkgrel=1
pkgdesc="Nvidia VDPAU library"
arch=(x86_64)
url='https://www.freedesktop.org/wiki/Software/VDPAU/'
depends=('libxext')
license=('custom')
source=("git+https://gitlab.freedesktop.org/vdpau/libvdpau.git")
makedepends=('xorgproto' 'git' 'meson')
provides=(libvdpau)
conflicts=(libvdpau)
sha256sums=('SKIP')

pkgver() {
  cd libvdpau
  git describe --tags | sed 's/-/+/g'
}

build() {
  arch-meson libvdpau build
  ninja $NINJAFLAGS -C build
}

#check() {
#  ninja $NINJAFLAGS -C build test
#}

package() {
  DESTDIR="${pkgdir}" ninja $NINJAFLAGS -C build install
  install -Dm 644 libvdpau/COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}