#!/bin/mkpkg
# description: Open source multimedia framework core library
# url: https://gstreamer.freedesktop.org

name=gstreamer
version=1.28.1
release=1
depends=(glib)
makedeps=(meson samurai pkgconf python3)
source=(https://gstreamer.freedesktop.org/src/$name/$name-$version.tar.xz)
sha256sums=(
    "b65e2ffa35bdbf8798cb75c23ffc3d05e484e48346ff7546844ba85217664504"
)

build() {
    cd $name-$version
    meson setup build \
        --prefix=/usr \
        --buildtype=release \
        --wrap-mode=nodownload \
        -Dgst_debug=false \
        -Dtracer_hooks=false \
        -Dintrospection=disabled \
        -Dbenchmarks=disabled \
        -Dexamples=disabled \
        -Dtests=disabled \
        -Dtools=enabled \
        -Ddoc=disabled \
        -Dcheck=disabled \
        -Dnls=disabled \
        -Dptp-helper-setuid-user=nobody \
        -Dptp-helper-setuid-group=nobody
    meson compile -C build
    meson install -C build --destdir $PKG

    rm -rf $PKG/usr/share/gdb
    rm -rf $PKG/usr/share/cmake
    rm -rf $PKG/usr/libexec/gstreamer-1.0/gst-hotdoc-plugins-scanner
    rm -rf $PKG/usr/libexec/gstreamer-1.0/gst-plugins-doc-cache-generator
}
signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh
