summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 44f283c341b4d0dcbbe303fe398cbd594d2effde (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
36
37
38
39
40
41
42
# Maintainer: Térence Clastres <t dot clastres at gmail dot com>

pkgname=libva-vdpau-driver-vp9-git
pkgver=r57.509d3b2
pkgrel=4
pkgdesc="VDPAU backend for VA API. (Version with VP9 codec support)"
arch=('x86_64')
url='https://github.com/xuanruiqi/vdpau-va-driver-vp9'
license=('GPL')
depends=('libvdpau>=1.3'
         'libgl'
         )
makedepends=('git'
             'libva'
             'mesa'
             'xorgproto'
             )
replaces=('vdpau-video')
provides=('libva-vdpau-driver')
conflicts=('libva-vdpau-driver' 'nvidia-vaapi-driver')
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$pkgname"

  ./autogen.sh --prefix=/usr
  make
}

package() {
  cd "$pkgname"

  make DESTDIR="$pkgdir" install
}