# Contributor:Rasmus Thomsen # Maintainer: jane400 pkgname=gtksourceview5 pkgver=5.8.0 pkgrel=3 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 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" options="!check" # regex test fails builddir="$srcdir/gtksourceview-$pkgver" build() { abuild-meson \ -Db_lto=true \ . output meson compile -C output } check() { xvfb-run meson test --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } sha512sums=" 370be5e8040f68eeef5fc6dec3e0ff9cbcf64a6ad162e228cddf07f6d493c762f37c89010073d4d850ec8c6ffa45c4697f5d9eb8c32de5fffc7ec97f44911d3b gtksourceview-5.8.0.tar.xz "