summaryrefslogtreecommitdiff
path: root/community/gtksourceview5/APKBUILD
blob: a8da50472b1d578cf6baea9b0cef1d25871869e1 (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
# Contributor:Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gtksourceview5
pkgver=5.4.1
pkgrel=0
pkgdesc="A text widget adding syntax highlighting and more to GNOME"
url="https://wiki.gnome.org/Projects/GtkSourceView"
arch="all"
license="GPL-2.0-or-later"
depends_dev="
	gtk4.0-dev
	libxml2-dev
	"
makedepends="$depends_dev
	glade-dev
	gobject-introspection-dev
	libxslt
	meson
	pcre2-dev
	vala
	"
checkdepends="
	dbus
	ibus
	xvfb-run
	"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.gnome.org/sources/gtksourceview/${pkgver%.*}/gtksourceview-$pkgver.tar.xz
	skip-test.patch
	"
options="!check" # regex test fails
builddir="$srcdir/gtksourceview-$pkgver"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

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

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="
5270db969455ad29498a02a851802228575c9b4b6cf6d4f9736bff95f869f1052550034fe6cc4f0c8d29174559d147068dcd088ab09b2008399f7a717aced298  gtksourceview-5.4.1.tar.xz
e0b1d13dac82715f086ca5d53ef03cfdde4520738a0d011e583752b42b4c5ddbfe320626cb35f1f395a06e9d5bd4122f1f122f043941d42f4efb5c29c331abc4  skip-test.patch
"