aboutsummaryrefslogtreecommitdiffstats
path: root/community/gst-plugins-ugly/APKBUILD
blob: a77e81304ae4c958b9ba02f14167197566707bc5 (plain)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-plugins-ugly
pkgver=1.20.2
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 orc-dev x264-dev opencore-amr-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() {
	abuild-meson \
		-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 ${JOBS:+-j ${JOBS}} -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="
bbe6c60003dc180084995aa00c8aefc5238f9e826db03f5cadac4a39900f2e9ca529b8f63787ca59c830e12bf4f426408b185ca228bd5e9255c2a4f452a48d6a  gst-plugins-ugly-1.20.2.tar.xz
"