# Maintainer: Natanael Copa pkgname=gst-plugins-good pkgver=1.14.4 pkgrel=2 pkgdesc="GStreamer Multimedia Framework Good Plugins" url="https://gstreamer.freedesktop.org" arch="all" license="GPL-2.0-or-later LGPL-2.0-or-later" subpackages="$pkgname-lang $pkgname-doc $pkgname-qt $pkgname-gtk" replaces="gst-plugins-good1" makedepends=" libtool automake autoconf gstreamer-dev gst-plugins-base-dev flac-dev gdk-pixbuf-dev glib-dev jack-dev libavc1394-dev libdv-dev libgudev-dev libice-dev libiec61883-dev libjpeg-turbo-dev libogg-dev libpng-dev libshout-dev libsm-dev libsoup-dev libvpx-dev libxdamage-dev libxext-dev libxv-dev linux-headers orc-dev taglib-dev v4l-utils-dev wavpack-dev zlib-dev mpg123-dev lame-dev gtk+3.0-dev qt5-qtdeclarative-dev qt5-qtx11extras-dev libcaca-dev cairo-dev orc-compiler " ldpath="/usr/lib/gstreamer-1.0" source="https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-$pkgver.tar.xz libvpx-1.8.patch" options="!check" # elements/souphttpsrc fails # secfixes: # 1.10.4-r0: # - CVE-2017-5840 # - CVE-2017-5841 # - CVE-2017-5845 # - CVE-2016-9634 # - CVE-2016-9635 # - CVE-2016-9636 # - CVE-2016-9808 # - CVE-2016-10198 # - CVE-2016-10199 build() { cd "$builddir" autoreconf -vif ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ --enable-experimental \ --disable-fatal-warnings \ --with-package-name="GStreamer Good Plugins (Alpine Linux)" \ --with-package-origin="http://alpinelinux.org/" make } check() { cd "$builddir" make check } package() { cd "$builddir" export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 make DESTDIR="$pkgdir" install } _mv() { mkdir -p "$subpkgdir"/"$ldpath" mv "$1" "$subpkgdir"/"$ldpath" } qt() { pkgdesc="Gstreamer Qt plugin." for i in $(find "$pkgdir" -type f ); do if ldd $i 2>/dev/null | grep -q "libQt"; then _mv "$i" || return 1 fi done } gtk() { pkgdesc="Gstreamer gtk-3 plugin." for i in $(find "$pkgdir" -type f ); do if ldd $i 2>/dev/null | grep -q "libgtk-3"; then _mv "$i" || return 1 fi done } doc() { default_doc replaces="${pkgname}1-doc" } sha512sums="30aeb3bb74571287cad1598973da38e7a43a0128d35480ded6d280c1373dc4ecd4ea76caaa04a71cdfba2e1850aee5f1b72d96be86ae92d66633e7d32081c504 gst-plugins-good-1.14.4.tar.xz e0bcc742ae1a42e4423e5cd7d509508c45b699d1625eb5666a8248825c7a69d557e288060bc5e44b195358b660e4cc5afe8ca66ef22f0ae6f6268f6475143d1a libvpx-1.8.patch"