# Maintainer: Natanael Copa pkgname=gst-libav pkgver=1.18.1 pkgrel=0 pkgdesc="GStreamer streaming media framework libav plugin" url="https://gstreamer.freedesktop.org" arch="all" license="GPL-2.0-or-later LGPL-2.0-or-later" makedepends="coreutils ffmpeg-dev gst-plugins-base-dev gstreamer-dev meson orc-dev" source="https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-$pkgver.tar.xz" replaces="gst-libav1" build() { export CFLAGS="$CFLAGS -fno-strict-aliasing -D_XOPEN_SOURCE" abuild-meson \ -Dpackage-origin="https://alpinelinux.org" \ -Dpackage-name="GStreamer libav plugin (Alpine Linux)" \ . output meson compile ${JOBS:+-j ${JOBS}} -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } doc() { default_doc replaces="${pkgname}1-doc" } sha512sums="1e0961c86456e43a14c8f5656562f3c910b6c52a8280e67042cc6d33498d28c97f2f650beb530dd3b23946dccb62b89587eca38e10f0d6e15645aee8d193046a gst-libav-1.18.1.tar.xz"