# Description: dav1d is an AV1 decoder
# URL: https://code.videolan.org/videolan/dav1d/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: vulkan-loader

name=dav1d
version=1.2.1
release=1
source=(https://code.videolan.org/videolan/dav1d/-/archive/$version/$name-$version.tar.gz)

build() {
  meson setup $name-$version build \
    --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true \
    -D enable_tests=false
  meson compile -C build
  DESTDIR=$PKG meson install -C build
}
