Jan Alexander Steffens (heftig) pushed to branch main at Arch Linux / Packaging 
/ Packages / gnome-builder


Commits:
0bf2b229 by Emil Velikov at 2024-02-29T20:41:52+00:00
Remove flatpak-builder dependency

No longer applicable since gnome-builder commit 5469bc327 ("flatpak:
remove use of libflatpak from UI process"), circa gnome-builder v42.

Since that commit we link against libflatpak, instead of shelling out
and using the flatpak-builder executable.

Signed-off-by: Emil Velikov <[email protected]>

- - - - -
b0079908 by Emil Velikov at 2024-02-29T20:41:52+00:00
Split clang and flatpak sub-packages

Both of clang and flatpak plugins come alongside respective daemon,
which is build as separate binary. Each of those is optional, so make
them sub-packages.

Ultimately, this means that if you're not using them you don't need to
download and install dozens of packages, resulting in 100s of MiB. In
the worst case we're looking around 500-600 MiB of extra installed
packages.

Closes: 
https://gitlab.archlinux.org/archlinux/packaging/packages/gnome-builder/-/issues/1

Signed-off-by: Emil Velikov <[email protected]>

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -1,7 +1,8 @@
 # Maintainer: Fabian Bornschein <fabiscafe-at-mailbox-dot-org>
 # Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
 
-pkgname=gnome-builder
+pkgbase=gnome-builder
+pkgname=(gnome-builder gnome-builder-clang gnome-builder-flatpak)
 pkgver=45.0
 pkgrel=3
 pkgdesc="An IDE for writing GNOME-based software"
@@ -11,7 +12,6 @@ license=(GPL3)
 depends=(
   autoconf-archive
   cairo
-  clang
   cmark
   ctags
   d-spy
@@ -20,8 +20,6 @@ depends=(
   devhelp
   editorconfig-core-c
   enchant
-  flatpak
-  flatpak-builder
   gdk-pixbuf2
   gjs
   glib2
@@ -55,6 +53,8 @@ depends=(
 )
 makedepends=(
   appstream-glib
+  clang
+  flatpak
   git
   gobject-introspection
   llvm
@@ -100,15 +100,49 @@ check() (
   dbus-run-session meson test -C build --print-errorlogs
 )
 
-package() {
+package_gnome-builder() {
   depends+=(libgit2.so)
   optdepends=(
     'bash-language-server: Shell code assistance'
+    'gnome-builder-clang: Clang integration'
+    'gnome-builder-flatpak: Flatpak integration'
     'python-lsp-server: Python code assistance'
   )
   groups=(gnome-extra)
 
   meson install -C build --destdir "$pkgdir"
+
+  # Move the external plugins to sub-packages
+  mv -f "$pkgdir"/usr/lib/gnome-builder-{clang,flatpak} "$srcdir"
+}
+
+package_gnome-builder-clang() {
+  pkgdesc+=" (clang module)"
+  depends=(
+    clang
+    gcc-libs
+    glib2
+    gtk4
+    gtksourceview5
+    jsonrpc-glib
+    libdex
+    libpeas-2
+  )
+  groups=(gnome-extra)
+
+  install -m755 "$srcdir/gnome-builder-clang" "$pkgdir/usr/lib/"
+}
+
+package_gnome-builder-flatpak() {
+  pkgdesc+=" (flatpak module)"
+  depends=(
+    flatpak
+    gcc-libs
+    glib2
+  )
+  groups=(gnome-extra)
+
+  install -m755 "$srcdir/gnome-builder-flatpak" "$pkgdir/usr/lib/"
 }
 
 # vim:set sw=2 sts=-1 et:



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/gnome-builder/-/compare/82c768a931a26a12b42416cffca3d6f20ed2e9d0...b0079908ca340a249d56185964d9c0b7b69a8502

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/gnome-builder/-/compare/82c768a931a26a12b42416cffca3d6f20ed2e9d0...b0079908ca340a249d56185964d9c0b7b69a8502
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to