1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Balló György <ballogyor+arch at gmail dot com>
3 # Contributor: Ionut Biru <ibiru@archlinux.org>
6 pkgname=(gtksourceview5 gtksourceview5-docs)
9 pkgdesc="A text widget adding syntax highlighting and more to GNOME"
10 url="https://wiki.gnome.org/Projects/GtkSourceView"
13 depends=(gtk4 libxml2 pcre2)
14 makedepends=(gobject-introspection vala gi-docgen git meson)
15 checkdepends=(xorg-server-xvfb)
17 _commit=ec0b434c4ebea7e9c1920013af2a911c4b28a66a # tags/5.4.2^0
18 source=("git+https://gitlab.gnome.org/GNOME/gtksourceview.git#commit=$_commit")
23 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
31 arch-meson gtksourceview build -D gtk_doc=true
32 meson compile -C build
36 dbus-run-session xvfb-run -s '-nolisten local' \
37 meson test -C build --print-errorlogs
40 package_gtksourceview5() {
41 provides=(libgtksourceview-${pkgver%%.*}.so)
43 meson install -C build --destdir "$pkgdir"
45 mkdir -p doc/usr/share
46 mv {"$pkgdir",doc}/usr/share/doc
49 package_gtksourceview5-docs() {
50 pkgdesc+=" (documentation)"