blob: 6be38cbb1c94812ca78e1cc0bfbc0b9aab94a0bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: Krassy Boykinov <kboykinov@teamcentrixx.com>
pkgname=gst-plugins-rs
pkgver=0.13.0
pkgrel=0
pkgdesc="Gstreamer rust plugins"
url="https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs"
# ppc64le, s390x, riscv64: ring in gst-plugin-version-helper
# armv7, armhf, x86: ring in gtk4
# loongarch64: build failed
arch="all !armhf !armv7 !ppc64le !riscv64 !s390x !x86 !loongarch64"
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="
7c8605bfd24326ced763df28baf0700cffddba586412377b5c1f2a0e68bc07b55421c2d079e30360e42f9f5e0a2c4bd3a91fa76c2cfd5c167f50db6ac3a42992 gst-plugins-rs-0.13.0.tar.gz
5f354a7776859f62a235947b5a31779688bc681f3c47c3fbf85806c8a12f68023a731067c958e40dfd580af591ea271e4e5184ef3b45a193c9b855486c64fef0 dylib.patch
"
|