1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
4 pkgname=(gnome-builder gnome-builder-libide-docs)
7 pkgdesc="An IDE for writing GNOME-based software"
8 url="https://wiki.gnome.org/Apps/Builder"
11 depends=(gtksourceview4 devhelp libgit2-glib gjs python-gobject sysprof
12 desktop-file-utils ctags libpeas vte3 vala autoconf-archive libhandy
13 gspell libdazzle template-glib jsonrpc-glib python-sphinx webkit2gtk
14 glade python-lxml meson libportal-gtk3 cmark clang flatpak-builder)
15 makedepends=(llvm gobject-introspection gi-docgen yelp-tools appstream-glib git
16 mm-common python-sphinx_rtd_theme jedi-language-server)
17 checkdepends=(xorg-server-xvfb)
19 _commit=a08692eb4f33d571c9f98f23037c6ed8ecba800e # tags/42.1^0
20 source=("git+https://gitlab.gnome.org/GNOME/gnome-builder.git#commit=$_commit")
25 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
33 arch-meson $pkgbase build \
36 meson compile -C build
40 dbus-run-session xvfb-run -s '-nolisten local' \
41 meson test -C build --print-errorlogs
45 local p="$1" f d; shift
47 d="$srcdir/$p/${f#$pkgdir/}"
48 mkdir -p "$(dirname "$d")"
50 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
54 package_gnome-builder() {
55 depends+=(libgladeui-2.so)
56 optdepends=('gnome-code-assistance: Legacy assistance services'
57 'jedi-language-server: Python code assistance')
60 meson install -C build --destdir "$pkgdir"
62 _pick libide-docs "$pkgdir"/usr/share/doc/libide
65 package_gnome-builder-libide-docs() {
66 pkgdesc+=" (libide API documentation)"
68 mv libide-docs/* "$pkgdir"