summaryrefslogtreecommitdiff
path: root/user/gst-plugins-good/APKBUILD
blob: bc8624aa019b59eca27f0ebe0610f2e947930cda (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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=gst-plugins-good
pkgver=1.20.2
pkgrel=2
pkgdesc="GStreamer multimedia framework - Free, well-written plugins"
url="https://gstreamer.freedesktop.org/modules/gst-plugins-good.html"
arch="all"
license="LGPL-2.1+"
depends=""
makedepends="gst-plugins-base-dev gstreamer-dev gobject-introspection-dev
	orc-dev libgudev-dev v4l-utils-dev libx11-dev cairo-dev flac-dev
	gdk-pixbuf-dev gtk+3.0-dev libjpeg-turbo-dev lame-dev libdv-dev
	libpng-dev mpg123-dev pulseaudio-dev libraw1394-dev libiec61883-dev
	libavc1394-dev libsoup-dev speex-dev taglib-dev wavpack-dev zlib-dev
	bzip2-dev libxdamage-dev libxext-dev libxfixes-dev meson orc-compiler
	wayland-protocols"
subpackages="$pkgname-gtk $pkgname-lang"
ldpath="/usr/lib/gstreamer-1.0"
source="https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-$pkgver.tar.xz
	drop-messages-interval-type.patch
	fix-arm-test-alignment.patch
	"

build() {
	meson \
		-Dprefix=/usr \
		-Dnls=enabled \
		-Dorc=disabled \
		-Dpackage-name="GStreamer Good Plugins (${DISTRO_NAME:-Adélie Linux})" \
		-Dpackage-origin="${DISTRO_URL:-https://www.adelielinux.org/}" \
		_build
	ninja -C _build
}

check() {
	ninja -C _build test
}

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

gtk() {
	pkgdesc="$pkgdesc (Gtk+ 3 integration)"
	install_if="$pkgname=$pkgver-r$pkgrel gtk+3.0"
	mkdir -p "$subpkgdir"/usr/lib/gstreamer-1.0
	mv "$pkgdir"/usr/lib/gstreamer-1.0/libgstgdkpixbuf.so \
		"$subpkgdir"/usr/lib/gstreamer-1.0/
	mv "$pkgdir"/usr/lib/gstreamer-1.0/libgstgtk.so \
		"$subpkgdir"/usr/lib/gstreamer-1.0/
}

sha512sums="a10ea48fdfbe741e9bc63036b011748558f89968aaa525380ac99884c27463d190c0b49e2d98b4f554eee6ead8a5c5da3ba62e5b0b1fe54877598beccc68a933  gst-plugins-good-1.20.2.tar.xz
0f08a08d6f0e8303a9c899c5260f6ca2c0e0a41e1ca2a9c795c1cb1267a9003354cd0e5538022049a09784ba9000a4a60b7a0b07b38a18483ec30d9a86356e46  drop-messages-interval-type.patch
b08c5013100dff428125dca9075641a8c528ccdcdf005b66b286cfe3b8b6f80c4b04f41d768883e98112107b857e17af68e2864a331f379bd7ea5027adc641d8  fix-arm-test-alignment.patch"