aboutsummaryrefslogtreecommitdiffstats
path: root/community/gst-plugins-bad/APKBUILD
blob: a633aab31d872b2e3443a3a789138918f3dc8df4 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-plugins-bad
pkgver=1.16.0
pkgrel=1
pkgdesc="GStreamer streaming media framework bad plug-ins"
url="https://gstreamer.freedesktop.org"
arch="all"
license="GPL-2.0-or-later LGPL-2.0-or-later"
replaces="gst-plugins-bad1"
options="!check" # most fail because: XDG_RUNTIME_DIR not set in the env.
makedepends="alsa-lib-dev bluez-dev bzip2-dev curl-dev directfb-dev faac-dev
	faad2-dev flite-dev glib-dev glu-dev gsm-dev gst-plugins-base-dev
	gstreamer-dev libass-dev libdc1394-dev libexif-dev libmms-dev
	libmodplug-dev librsvg-dev libsrtp-dev libvdpau-dev libwebp-dev
	libx11-dev mesa-dev meson neon-dev openssl-dev opus-dev orc-compiler
	orc-dev spandsp-dev tiff-dev x265-dev"
subpackages="$pkgname-lang $pkgname-dev"
source="https://gstreamer.freedesktop.org/src/gst-plugins-bad/$pkgname-$pkgver.tar.xz"
ldpath="/usr/lib/gstreamer-1.0"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		-Dpackage-origin="https://alpinelinux.org" \
		-Dpackage-name="GStreamer bad plug-ins (Alpine Linux)" \
		. output
	ninja -C output
}

check() {
	meson test -C output --print-errorlogs
}

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

sha512sums="3555817553392ff258024cd4532252939d3f4cc6755746e3ac74a3327218a7c4a87e33d455fdd58a63fb1d5b4691a164d90e7824558ecf845fd6c77c99181aa2  gst-plugins-bad-1.16.0.tar.xz"