# Description: libva video acceleration for newer intel based setups
# URL: https://github.com/intel/intel-vaapi-driver
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: glu ffmpeg libva meson ninja

name=libva-intel-driver
version=2.4.1
release=2
source=(https://github.com/intel/intel-vaapi-driver/releases/download/${version}/intel-vaapi-driver-${version}.tar.bz2)

build() {
  meson intel-vaapi-driver-$version build \
    --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true
  ninja -C build
  DESTDIR=$PKG ninja -C build install
}
