summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 232a10b8aa47ba6b4b3b6abce9a08f9c22d51922 (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
# Maintainer: Philip Goto <philip.goto@gmail.com>

pkgname=gtksourceview5
pkgver=5.0.0
pkgrel=2
pkgdesc="A text widget adding syntax highlighting and more to GNOME"
url="https://gitlab.gnome.org/GNOME/gtksourceview"
license=("LGPL")
arch=(x86_64 aarch64)
depends=(gtk4)
makedepends=(
	git
	gobject-introspection
#	gtk-doc
	meson
	vala
)
checkdepends=(xorg-server-xvfb)
source=("git+https://gitlab.gnome.org/GNOME/gtksourceview.git#tag=${pkgver}")
sha256sums=('SKIP')

build() {
	arch-meson gtksourceview build # -D gtk_doc=true
	meson compile -C build
}

check() {
	dbus-run-session xvfb-run \
		-s '-screen 0 1920x1080x24 -nolisten local' \
		meson test -C build --print-errorlogs
}

package() {
	DESTDIR="${pkgdir}" meson install -C build
}