# Contributor:Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=gtksourceview4 pkgver=4.6.0 pkgrel=0 pkgdesc="A text widget adding syntax highlighting and more to GNOME" url="https://wiki.gnome.org/Projects/GtkSourceView" arch="all !s390x !mips !mips64" # Limited by ibus -> librsvg 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 dbus" subpackages="$pkgname-dev $pkgname-lang" source="https://download.gnome.org/sources/gtksourceview/${pkgver%.*}/gtksourceview-$pkgver.tar.xz skip-test.patch " builddir="$srcdir/gtksourceview-$pkgver" build() { meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=plain \ -Dglade_catalog=true \ . output ninja -C output } check() { xvfb-run ninja -C output test } package() { DESTDIR="$pkgdir" ninja -C output install } dev() { default_dev mkdir -p "$subpkgdir"/usr/share mv "$pkgdir"/usr/share/glade/catalogs "$subpkgdir"/usr/share/ } sha512sums="e7a873dbd452f2077afbc6e0142ce17172a8d33220ea1181e69ed8a5cf94e42e2df741e5a0636731fab6984e84ea2347dca34b5889f3808d29259e13527fa00c gtksourceview-4.6.0.tar.xz c765c7c77a94007e95c050c05ef0283b2cdcd5751274924ea08a02ea2507061677d7f286c3e98d6b91f3603a06364d1ea43491e77e2e086e05c841218923e771 skip-test.patch"