# Contributor:Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=gtksourceview4 pkgver=4.4.0 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" replaces="gtksourceview" depends_dev="gtk+3.0-dev libxml2-dev" makedepends="$depends_dev gobject-introspection-dev vala libxslt meson glade-dev" checkdepends="xvfb-run ibus" subpackages="$pkgname-dev $pkgname-lang" source="https://download.gnome.org/sources/gtksourceview/${pkgver%.*}/gtksourceview-$pkgver.tar.xz" builddir="$srcdir/gtksourceview-$pkgver" build() { meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=release \ -Dglade_catalog=true \ . output ninja -C output } check() { xvfb-run ninja -C output test } package() { DESTDIR="$pkgdir" ninja -C output install } sha512sums="068e723525290c5356c5ce3f5e5b5b8ecc9f7b1ff2f8234da247d1a84bed63ff5601cad6550981720859286e107705ec25cc7793b754ada164ec6569df0df9eb gtksourceview-4.4.0.tar.xz"