APKBUILD 2.16 KB
Newer Older
1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
2
pkgname=gst-plugins-good
3
pkgver=1.16.2
4 5
pkgrel=0
pkgdesc="GStreamer streaming media framework good plug-ins"
6
url="https://gstreamer.freedesktop.org"
7
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
8
license="GPL-2.0-or-later LGPL-2.0-or-later"
9
subpackages="$pkgname-lang $pkgname-qt $pkgname-gtk"
Natanael Copa's avatar
Natanael Copa committed
10
replaces="gst-plugins-good1"
11 12 13 14 15 16 17
makedepends="cairo-dev flac-dev gdk-pixbuf-dev glib-dev gst-plugins-base-dev
	gstreamer-dev gtk+3.0-dev jack-dev lame-dev libavc1394-dev libcaca-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 meson mpg123-dev
	orc-compiler orc-dev qt5-qtdeclarative-dev qt5-qtx11extras-dev
	taglib-dev v4l-utils-dev wavpack-dev zlib-dev"
18
ldpath="/usr/lib/gstreamer-1.0"
19
source="https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-$pkgver.tar.xz"
20
options="!check" # elements/souphttpsrc fails
21

22 23 24 25 26 27 28 29 30 31 32 33
# 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

34
build() {
35
	meson \
36
		--prefix=/usr \
37
		--sysconfdir=/etc \
38
		--mandir=/usr/share/man \
39
		--localstatedir=/var \
40 41 42 43 44
		--buildtype=release \
		-Dpackage-origin="https://alpinelinux.org" \
		-Dpackage-name="GStreamer good plug-ins (Alpine Linux)" \
		. output
	ninja -C output
45 46
}

47 48 49 50
check() {
	make check
}

51 52
package() {
	export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
53
	DESTDIR="$pkgdir" ninja -C output install
54 55 56 57
}

_mv() {
	mkdir -p "$subpkgdir"/"$ldpath"
58
	mv "$1" "$subpkgdir"/"$ldpath"
59 60 61
}

qt() {
62
	pkgdesc="Gstreamer Qt plug-in"
63
	find "$pkgdir" -type f | while read -r i; do
64 65 66 67
		if ldd $i 2>/dev/null | grep -q "libQt"; then
			_mv "$i"
		fi
	done
68 69 70
}

gtk() {
71
	pkgdesc="Gstreamer gtk-3 plug-in"
72
	find "$pkgdir" -type f | while read -r i; do
73 74 75 76
		if ldd $i 2>/dev/null | grep -q "libgtk-3"; then
			_mv "$i"
		fi
	done
77 78
}

79
sha512sums="ab0dfd51af3ea345db466618547c35c78b5f08e725096b66074a5a7e0a83ca25ac51d2d915b7a8c07b70f8e4c9fc65d51c1851f147a5a5a71fbca58e1eb5ffd4  gst-plugins-good-1.16.2.tar.xz"