aboutsummaryrefslogtreecommitdiffstats
path: root/community/gst-plugins-good/APKBUILD
blob: ed0e8d6983af2dcbf93198f847c054e1a8c73170 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-plugins-good
pkgver=1.16.0
pkgrel=0
pkgdesc="GStreamer streaming media framework good plug-ins"
url="https://gstreamer.freedesktop.org"
arch="all"
license="GPL-2.0-or-later LGPL-2.0-or-later"
subpackages="$pkgname-lang $pkgname-qt $pkgname-gtk"
replaces="gst-plugins-good1"
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"
ldpath="/usr/lib/gstreamer-1.0"
source="https://gstreamer.freedesktop.org/src/gst-plugins-good/$pkgname-$pkgver.tar.xz"
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() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		-Dpackage-origin="https://alpinelinux.org" \
		-Dpackage-name="GStreamer good plug-ins (Alpine Linux)" \
		. output
	ninja -C output
}

check() {
	make check
}

package() {
	export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
	DESTDIR="$pkgdir" ninja -C output install
}

_mv() {
	mkdir -p "$subpkgdir"/"$ldpath"
        mv "$1" "$subpkgdir"/"$ldpath"
}

qt() {
	pkgdesc="Gstreamer Qt plug-in"
        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 plug-in"
        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
}

sha512sums="01ae64426d62500c12eb98073fcdf4bbbb7df69b5d30a153491a6e3bcd9bfa6e6a3a7fdedd7b7293ce9405e909a4a57c691f293a58525f21281136deac7c0a7c  gst-plugins-good-1.16.0.tar.xz"