blob: 26a0d8aa4a0c93136e36f3991ce442625e3c45b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# Maintainer: Aleksi Gaevsky (ukrcherry) <aleksi.eesti@gmail.com>
_pkgname=gnome-builder
pkgname="${_pkgname}-git"
pkgver=47.1+83+g5e7d3060b
pkgrel=1
pkgdesc='An IDE for writing GNOME-based software'
arch=(
x86_64
i686
pentium4
aarch64
armv7h
)
url=https://wiki.gnome.org/Apps/Builder
license=(GPL3)
depends=(
autoconf-archive
clang
cmark
ctags
d-spy
desktop-file-utils
devhelp
editorconfig-core-c
flatpak-builder
gjs
glib2
gtksourceview5
jsonrpc-glib
libadwaita
libdex
libgit2-glib
libpanel
libpeas
libportal-gtk4
meson
python-gobject
python-lxml
python-sphinx
sysprof
template-glib
vala
vte4
webkitgtk-6.0
)
makedepends=(
appstream-glib
git
gobject-introspection
llvm
mm-common
python-lsp-server
python-sphinx_rtd_theme
yelp-tools
)
checkdepends=(weston)
optdepends=(
'gnome-code-assistance: Legacy assistance services'
'python-lxml: documentation support for Python auto-completion')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
groups=(gnome-extra gnome-extra-git)
source=("git+https://gitlab.gnome.org/GNOME/${_pkgname}.git")
sha256sums=('SKIP')
pkgver() {
cd ${_pkgname}
git describe --tags | sed 's/^GNOME_BUILDER_//;s/_/./g;s/-/+/g'
}
prepare() {
cd "${_pkgname}"
}
build() {
local meson_options=(
--buildtype debugoptimized
-D docs=true
-D help=true
-D plugin_editorconfig=true
)
arch-meson "${_pkgname}" build "${meson_options[@]}"
meson compile -C build
}
check() (
export XDG_RUNTIME_DIR="$PWD/runtime-dir" WAYLAND_DISPLAY=wayland-5
mkdir -p -m 700 "$XDG_RUNTIME_DIR"
weston --backend=headless-backend.so --socket=$WAYLAND_DISPLAY --idle-time=0 &
_w=$!
trap "kill $_w; wait" EXIT
#dbus-run-session meson test -C build --print-errorlogs
)
package() {
depends+=(libgit2.so)
optdepends=(
'bash-language-server: Shell code assistance'
'python-lsp-server: Python code assistance'
)
groups=(
gnome-extra
gnome-extra-git
)
meson install -C build --destdir "${pkgdir}"
}
# vim:set ts=2 sw=2 et:
|