mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-17 23:34:07 +00:00
added extra/gnome-builder
This commit is contained in:
parent
fb5af9f443
commit
344d065c61
2 changed files with 136 additions and 0 deletions
84
extra/gnome-builder/PKGBUILD
Normal file
84
extra/gnome-builder/PKGBUILD
Normal file
|
@ -0,0 +1,84 @@
|
|||
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - upstream patch to fix 32bit FTBFS
|
||||
|
||||
pkgbase=gnome-builder
|
||||
pkgname=(gnome-builder gnome-builder-libide-docs)
|
||||
pkgver=41.3
|
||||
pkgrel=2
|
||||
pkgdesc="An IDE for writing GNOME-based software"
|
||||
url="https://wiki.gnome.org/Apps/Builder"
|
||||
arch=(x86_64)
|
||||
license=(GPL3)
|
||||
depends=(gtksourceview4 devhelp libgit2-glib gjs python-gobject sysprof
|
||||
desktop-file-utils ctags libpeas vte3 vala autoconf-archive
|
||||
gspell libdazzle template-glib jsonrpc-glib python-sphinx webkit2gtk
|
||||
glade python-lxml meson libportal-gtk3 cmark)
|
||||
makedepends=(llvm gobject-introspection gi-docgen yelp-tools appstream-glib git
|
||||
mm-common python-sphinx_rtd_theme clang jedi-language-server
|
||||
flatpak-builder)
|
||||
checkdepends=(xorg-server-xvfb)
|
||||
_commit=21c097851240dc1242e9fbd819e7d9acf6e6af9c # tags/41.3^0
|
||||
source=("git+https://gitlab.gnome.org/GNOME/gnome-builder.git#commit=$_commit"
|
||||
libportal-0.5.diff
|
||||
https://gitlab.gnome.org/GNOME/gnome-builder/-/commit/fcf976d5fcfb81d14ea0ec9b9909bc9b8dc52a81.patch)
|
||||
sha256sums=('SKIP'
|
||||
'350dd0e5b8dc4d7ecdf3284e91983fe8d890ab453df6c5b218af8a6b6e7e7280'
|
||||
'32e1e3801ef8180d446c401c92965672710a97ce2a854cc22fe1e47de3ba2412')
|
||||
|
||||
pkgver() {
|
||||
cd $pkgbase
|
||||
git describe --tags | sed 's/^GNOME_BUILDER_//;s/[^-]*-g/r&/;s/_/./g;s/-/+/g'
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd $pkgbase
|
||||
|
||||
# libportal 0.5
|
||||
git apply -3 ../libportal-0.5.diff
|
||||
git apply ../fcf976d5fcfb81d14ea0ec9b9909bc9b8dc52a81.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
arch-meson $pkgbase build \
|
||||
-D docs=true \
|
||||
-D help=true
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
check() {
|
||||
dbus-run-session xvfb-run -s '-nolisten local' \
|
||||
meson test -C build --print-errorlogs
|
||||
}
|
||||
|
||||
_pick() {
|
||||
local p="$1" f d; shift
|
||||
for f; do
|
||||
d="$srcdir/$p/${f#$pkgdir/}"
|
||||
mkdir -p "$(dirname "$d")"
|
||||
mv "$f" "$d"
|
||||
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
|
||||
done
|
||||
}
|
||||
|
||||
package_gnome-builder() {
|
||||
depends+=(libgladeui-2.so)
|
||||
optdepends=('gnome-code-assistance: Legacy assistance services'
|
||||
'clang: C/C++ code assistance'
|
||||
'jedi-language-server: Python code assistance'
|
||||
'flatpak-builder: Build Flatpaks')
|
||||
groups=(gnome-extra)
|
||||
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
|
||||
_pick libide-docs "$pkgdir"/usr/share/doc/libide
|
||||
}
|
||||
|
||||
package_gnome-builder-libide-docs() {
|
||||
pkgdesc+=" (libide API documentation)"
|
||||
depends=()
|
||||
mv libide-docs/* "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:set sw=2 et:
|
52
extra/gnome-builder/libportal-0.5.diff
Normal file
52
extra/gnome-builder/libportal-0.5.diff
Normal file
|
@ -0,0 +1,52 @@
|
|||
diff --git i/meson.build w/meson.build
|
||||
index 71e4be94c..a6257e535 100644
|
||||
--- i/meson.build
|
||||
+++ w/meson.build
|
||||
@@ -284,7 +284,7 @@ libjsonrpc_glib_dep = dependency('jsonrpc-glib-1.0', version: '>= 3.29.91')
|
||||
libm_dep = cc.find_library('m', required: false)
|
||||
libpangoft2_dep = dependency('pangoft2', version: '>= 1.38.0')
|
||||
libpeas_dep = dependency('libpeas-1.0', version: '>= 1.22.0')
|
||||
-libportal_dep = dependency('libportal', version: '>= 0.3', required: false)
|
||||
+libportal_dep = dependency('libportal-gtk3', version: '>= 0.5', required: false)
|
||||
libtemplate_glib_dep = dependency('template-glib-1.0', version: '>= 3.28.0')
|
||||
libvte_dep = dependency('vte-2.91', version: '>= 0.40.2')
|
||||
libwebkit_dep = dependency('webkit2gtk-4.0', version: '>= 2.26', required: false)
|
||||
diff --git i/src/gstyle/gstyle-color-panel.c w/src/gstyle/gstyle-color-panel.c
|
||||
index 15742a7be..a6295c168 100644
|
||||
--- i/src/gstyle/gstyle-color-panel.c
|
||||
+++ w/src/gstyle/gstyle-color-panel.c
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "gstyle-color.h"
|
||||
|
||||
#include <libportal/portal.h>
|
||||
-#include <libportal/portal-gtk3.h>
|
||||
+#include <libportal-gtk3/portal-gtk3.h>
|
||||
|
||||
#define HSV_TO_SCALE_FACTOR (1.0 / 256.0)
|
||||
#define CIELAB_L_TO_SCALE_FACTOR (100.0 / 256.0)
|
||||
diff --git i/src/plugins/devhelp/gbp-devhelp-page.c w/src/plugins/devhelp/gbp-devhelp-page.c
|
||||
index 5d5c52b0d..2ac788414 100644
|
||||
--- i/src/plugins/devhelp/gbp-devhelp-page.c
|
||||
+++ w/src/plugins/devhelp/gbp-devhelp-page.c
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <webkit2/webkit2.h>
|
||||
|
||||
#include <libportal/portal.h>
|
||||
-#include <libportal/portal-gtk3.h>
|
||||
+#include <libportal-gtk3/portal-gtk3.h>
|
||||
|
||||
#include "gbp-devhelp-page.h"
|
||||
#include "gbp-devhelp-search.h"
|
||||
diff --git i/src/plugins/open-with-external/gbp-owe-workbench-addin.c w/src/plugins/open-with-external/gbp-owe-workbench-addin.c
|
||||
index 51d2da844..816fe643f 100644
|
||||
--- i/src/plugins/open-with-external/gbp-owe-workbench-addin.c
|
||||
+++ w/src/plugins/open-with-external/gbp-owe-workbench-addin.c
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "gbp-owe-workbench-addin.h"
|
||||
|
||||
#include <libportal/portal.h>
|
||||
-#include <libportal/portal-gtk3.h>
|
||||
+#include <libportal-gtk3/portal-gtk3.h>
|
||||
|
||||
struct _GbpOweWorkbenchAddin
|
||||
{
|
Loading…
Reference in a new issue