# Contributor: Ɓukasz Jendrysik # Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=orc pkgver=0.4.34 pkgrel=0 pkgdesc="Oil Run-time Compiler" url="https://gstreamer.freedesktop.org/modules/orc.html" arch="all" license="BSD-2-Clause" depends_dev="$pkgname-compiler=$pkgver-r$pkgrel" makedepends="linux-headers meson" subpackages="$pkgname-dev $pkgname-compiler" source="https://gstreamer.freedesktop.org/src/orc/orc-$pkgver.tar.xz" case "$CARCH" in # FIXME: Test exec_opcodes_sys fails on armhf. # FIXME: MIPS DSP Module Rev2 is required for tests on mips*. arm*|mips*) options="!check";; esac build() { abuild-meson \ -Db_lto=true \ -Dorc-test=disabled \ . output meson compile -C output } check() { meson test --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } compiler() { pkgdesc="Orc compiler" amove usr/bin } sha512sums=" ea6ce72398fad7569b97afe8e635402a7cc6d5e27b57c27fd76d85ccdf971391b52187297e5849e50ce1031691e9748f2cc312cb39bd0c6ac23c00ac6d96cb41 orc-0.4.34.tar.xz "