# Maintainer: Natanael Copa pkgname=gst-libav pkgver=1.16.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" meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=release \ -Dpackage-origin="https://alpinelinux.org" \ -Dpackage-name="GStreamer libav plugin (Alpine Linux)" \ . output ninja -C output } package() { DESTDIR="$pkgdir" ninja -C output install } doc() { default_doc replaces="${pkgname}1-doc" } sha512sums="4b5a56ffc8f1ed6fcc59e69504ee45e2738b80cbcbd9e3f8dc4ff0c14a822ab5b6baa048dd408016fddba7f1da410790e854f7b8d6a58d2ae10a755e141a6d70 gst-libav-1.16.1.tar.xz"