#!/bin/mkpkg
# description: GStreamer base plugins
# url: https://gstreamer.freedesktop.org

name=gst-plugins-base
version=1.28.1
release=1
depends=(gstreamer glib libogg opus)
makedeps=(meson samurai pkgconf python3)
source=(https://gstreamer.freedesktop.org/src/$name/$name-$version.tar.xz)
sha256sums=(
    "1446a4c2a92ff5d78d88e85a599f0038441d53333236f0c72d72f21a9c132497"
)

build() {
    cd $name-$version
    meson setup build \
        --prefix=/usr \
        --buildtype=release \
        --wrap-mode=nodownload \
        -Dintrospection=disabled \
        -Ddoc=disabled \
        -Dtests=disabled \
        -Dexamples=disabled \
        -Dnls=disabled \
        -Dogg=enabled \
        -Dopus=enabled \
        -Dalsa=disabled \
        -Dpango=disabled \
        -Dgl=disabled \
        -Dgl-graphene=disabled \
        -Dgl-png=disabled \
        -Dgl-jpeg=disabled \
        -Dxvideo=disabled \
        -Dx11=disabled \
        -Dcdparanoia=disabled \
        -Dlibvisual=disabled \
        -Dtheora=disabled \
        -Dvorbis=disabled
    meson compile -C build
    meson install -C build --destdir $PKG
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh
