# Maintainer: Natanael Copa pkgname=gst-plugins-ugly pkgver=1.22.5 pkgrel=0 pkgdesc="GStreamer streaming media framework ugly plug-ins" url="https://gstreamer.freedesktop.org" arch="all" license="GPL-2.0-or-later LGPL-2.0-or-later" replaces="gst-plugins-ugly1" makedepends=" a52dec-dev glib-dev gst-plugins-base-dev gstreamer-dev libcdio-dev libdvdread-dev libmpeg2-dev meson opencore-amr-dev orc-dev x264-dev " source="https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-$pkgver.tar.xz" subpackages="$pkgname-lang" ldpath="/usr/lib/gstreamer-1.0" # secfixes: # 1.10.4-r0: # - CVE-2017-5846 # - CVE-2017-5847 build() { CFLAGS="$CFLAGS -O2" \ CXXFLAGS="$CXXFLAGS -O2" \ CPPFLAGS="$CPPFLAGS -O2" \ abuild-meson \ -Db_lto=true \ -Dpackage-origin="https://alpinelinux.org" \ -Dpackage-name="GStreamer ugly plug-ins (Alpine Linux)" \ -Damrnb=enabled \ -Damrwbdec=enabled \ -Dgpl=enabled \ -Dcdio=disabled \ -Ddvdread=disabled \ -Dmpeg2dec=disabled \ . output meson compile -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } check() { meson test -C output --print-errorlogs } doc() { default_doc replaces="${pkgname}1-doc" } sha512sums=" 5ded749707a196f4fb0fe237e4bb5a2d9cfc4387a1e97540afcca28fab570c76e87858f34cbaa401ab531bb42be4843ccaa6d03e72d59a3788c701c7914ece8f gst-plugins-ugly-1.22.5.tar.xz "