# Maintainer: pkgname=gst-plugins-rs pkgver=0.10.11 pkgrel=1 pkgdesc="Gstreamer rust plugins" url="https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs" # ppc64le, s390x, riscv64: ring arch="all !ppc64le !s390x !riscv64" license="MIT AND Apache-2.0 AND MPL-2.0 AND LGPL-2.1-or-later" makedepends=" cargo cargo-c dav1d-dev gst-plugins-bad-dev gst-plugins-base-dev gtk4.0-dev libsodium-dev meson nasm openssl-dev " subpackages="$pkgname-dev $pkgname-tools" source="https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/archive/$pkgver/gst-plugins-rs-$pkgver.tar.gz dylib.patch " options="net !check" # they don't run export SODIUM_USE_PKG_CONFIG=1 prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { export CARGO_PROFILE_RELEASE_OPT_LEVEL=3 abuild-meson \ --buildtype=release \ . output meson compile -C output } check() { meson test --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } tools() { amove usr/bin } sha512sums=" 801ba5b492d9441236b7f104f8542d593af4562c980a347fa5ab7fd249790e575a9240f02560eb23bb3b922f8dbad38fa0879d44c834d4a6d5d349cd59962204 gst-plugins-rs-0.10.11.tar.gz 5f354a7776859f62a235947b5a31779688bc681f3c47c3fbf85806c8a12f68023a731067c958e40dfd580af591ea271e4e5184ef3b45a193c9b855486c64fef0 dylib.patch "