New package: gst-plugins-rs1-0.13.4

This commit is contained in:
oreo639 2025-02-16 17:11:56 -08:00 committed by oreo639
parent 75565a3619
commit 4749c50bc8
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,16 @@
cargo-c defaults to static on musl, we want dynamic.
Source: https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/community/gst-plugins-rs/0002-dylib.patch
diff --git a/cargo_wrapper.py b/cargo_wrapper.py
index 641edc8..4859b6b 100644
--- a/cargo_wrapper.py
+++ b/cargo_wrapper.py
@@ -111,6 +111,7 @@ if __name__ == "__main__":
cargo_cmd += ['build']
else:
cargo_cmd += ['cbuild']
+ cargo_cmd += ['--library-type=cdylib']
if not opts.disable_doc:
features += ['doc']
if opts.target == 'release':

View File

@ -0,0 +1,26 @@
# Template file for 'gst-plugins-rs1'
pkgname=gst-plugins-rs1
version=0.13.4
revision=1
build_style=meson
build_helper=rust
configure_args="-Ddoc=disabled"
hostmakedepends="pkg-config gettext glib-devel cargo cargo-c"
makedepends="rust-std gstreamer1-devel gst-plugins-base1-devel gst-plugins-bad1-devel
openssl-devel libsodium-devel gtk4-devel pango-devel libwebp-devel libdav1d-devel"
short_desc="GStreamer plugins and elements written in the Rust programming language"
maintainer="oreo639 <oreo6391@gmail.com>"
license="LGPL-2.1-or-later, MIT, Apache-2.0, MPL-2.0"
homepage="https://gstreamer.freedesktop.org"
distfiles="https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/archive/${version}/gst-plugins-rs-${version}.tar.gz"
checksum=547ac671c3c5ac4b7ee0b3c7ae5c89084abe15848ba4d15967f0fc38746bc06b
make_check=no # TODO: Meson check times-out while tests are compiling
pre_configure() {
# Otherwise results in --sysroot being duplicated on cross-compile, which we don't want
vsed -i cargo_wrapper.py -e "s/env\['RUSTFLAGS'\] =.*//g"
}
post_install() {
vlicense LICENSE-MIT
}