# Description: The Oil Runtime Compiler
# URL: https://gstreamer.freedesktop.org/projects/orc.html
# Maintainer: Tim Biermann, tbier at posteo dot de

name=orc
version=0.4.38
release=1
source=(https://gstreamer.freedesktop.org/src/$name/$name-$version.tar.xz)

build() {
  meson setup $name-$version build \
    --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true \
    -D benchmarks=disabled \
    -D examples=disabled \
    -D gtk_doc=disabled \
    -D tests=disabled

  meson compile -C build -j ${JOBS:-1}
  DESTDIR=$PKG meson install -C build
}
