summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a1250b32a72d574ce26a6ff7a7e8673ad761892 (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
114
115
116
117
118
119
120
121
122
123
124
125
126
# Maintainer: Egor Vorontsov <sdoregor@sdore.me>

_gitname=foundry
_pkgbase=gnome-${_gitname}
pkgname=${_pkgbase}-git
pkgver=r1757.3bd3bfc
pkgrel=1
pkgdesc="A GNOME library providing IDE capabilities (git version)"
groups=(gnome-extra)
arch=('x86_64')
url="https://gitlab.gnome.org/GNOME/foundry"
license=('LGPL-2.1-only')
depends=(
	cmark
	editorconfig-core-c
	flatpak
	gcc-libs
	glib2
	glibc
	gobject-introspection
	gom
	gtk4
	gtksourceview5
	json-glib
	libdex'>=0.11'
	libgit2
	libpeas-2
	libssh2
	libsysprof-capture
	libxml2
	libyaml
	template-glib'>=3.37'
	vte4
	webkitgtk-6.0
)
makedepends=(
	git
	glib2-devel
	lua51-lgi
	meson
	python-typogrify
	sysprof
	valabind
)
optdepends=(
	astrojs-language-server
	autotools
	bash-language-server
	blueprint-compiler
	buildstream
	cargo
	clangd
	cmake
	codesearch
	codespell
	ctags
	devhelp
	deviced
	distrobox
	doap
	dub
	elixir-ls
	eslint
	flake8
	gdiagnose
	gettext
	glsl-language-server
	go
	gopls
	gradle
	nodejs-intelephense
	jdtls
	jedi-language-server
	jhbuild
	lua-language-server
	make
	maven
	meson
	mesonlsp
	npm
	#ollama
	phpize
	podman
	python-lsp-server
	pyrefly
	qemu
	qemu-user-static
	ruff
	rust-analyzer
	serve-d
	shellcheck
	sourcekit-lsp
	libspelling
	toolbox
	typescript-language-server
	vala-language-server
	vhdl-language-server
	waf
	zls
)
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_gitname}"

	printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	local meson_options=(
		#-D feature-llm=true
		-D docs=true
	)

	arch-meson "${_gitname}" 'build/' "${meson_options[@]}"
	meson compile -C 'build/'
}

check() (
	meson test -C 'build/' --print-errorlogs
)

package() {
	meson install -C 'build/' --destdir "${pkgdir}"
}