summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0870f2e4922d5d8e83fec4a82eae5eaa7e703fca (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
43
44
45
46
47
48
# Maintainer:

_pkgname="libva-intel-driver"
pkgname="$_pkgname-hybrid"
pkgver=2.4.1
pkgrel=3
pkgdesc='VA-API implementation for Intel G45 and HD Graphics family'
url="https://github.com/intel/intel-vaapi-driver"
license=('MIT')
arch=('x86_64')

depends=(
  'libva'
  'libdrm'
)
makedepends=(
  'git'
  'meson'
  'xorgproto'
)
optdepends=(
  'intel-hybrid-codec-driver: Provides codecs with partial HW acceleration'
)

provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")

_pkgsrc="$_pkgname"
_commit='9a1f0c64174f970a26380d4957583c71372fbb7c'
source=("$_pkgsrc"::"git+$url.git#commit=$_commit")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgsrc"
  git describe --tags
}

build() {
  arch-meson -Denable_hybrid_codec=true "$_pkgsrc" build
  ninja -C build
}

package() {
  DESTDIR="$pkgdir" meson install -C build
  install -Dm644 "$_pkgsrc/COPYING" -t "$pkgdir/usr/share/licenses/$pkgname/"
}

# vim: ts=2 sw=2 et: