summaryrefslogtreecommitdiff
path: root/community/gst-editing-services/APKBUILD
blob: feefc413ae62e250c73e1f802dd183a1133c85d1 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gst-editing-services
pkgver=1.22.3
pkgrel=0
pkgdesc="GStreamer Editing Services Library"
url="https://gstreamer.freedesktop.org"
# s390x blocked by 7 failing tests
arch="all !s390x"
license="LGPL-2.0-or-later"
makedepends="
	flex
	glib-dev
	gobject-introspection-dev
	gst-plugins-bad-dev
	gst-plugins-base-dev
	gst-plugins-good
	gstreamer-dev
	gtk-doc
	libxml2-dev
	meson
	py3-gobject3-dev
	python3
	"
subpackages="$pkgname-dev $pkgname-doc"
source="https://gstreamer.freedesktop.org/src/gst-editing-services/gst-editing-services-$pkgver.tar.xz"
options="!check" # https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/issues/125

build() {
	CFLAGS="$CFLAGS -O2" \
	CXXFLAGS="$CXXFLAGS -O2" \
	CPPFLAGS="$CPPFLAGS -O2" \
	abuild-meson \
		-Db_lto=true \
		-Dtests="$(want_check && echo enabled || echo disabled)" \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

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

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
f4dd501bd8a40876e748b6b0475f85bfe3aae0650bd4bfd3623d485b0ffd32a01aa16ea01e1428c1735174f2609b380e81af366e0721e9cb360dc29a8f911104  gst-editing-services-1.22.3.tar.xz
"