blob: 4a756c9b14ba09fd92e5e1a0087f6c0d1db05f41 (
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
|
# Maintainer: Tim Lagnese <tim at inept tech>
# Maintainer: Rod Kay <rodakay5 at gmail com>
pkgname=ada_language_server
pkgdesc='High performance syntactic and semantic engine for the Ada programming language.'
pkgver=25.0w
pkgrel=2
epoch=2
url=https://github.com/AdaCore/ada_language_server
arch=(x86_64)
license=(GPL3)
depends=(libadalang-tools
lal-refactor
templates_parser
gtkada
libvss
ada_spawn
ada-libfswatch
gpr
gnatdoc)
makedepends=(gprbuild)
source=(https://github.com/charlie5/archlinux-gnatstudio-support/raw/main/gnatstudio-sources-2024/als-$pkgver-20240506-162AE-src.tar.gz
lsp-gpr_files.adb-patch)
sha256sums=(54bea7d9b4c8069a9b6a276b3c98578fff3fdbce8df44fa6590577bd3a8875d4
284a87185f8048db10d5dd07379ddf005fa75362a97bd20334dea1f706003383)
prepare()
{
cd $srcdir/als-25.0w-20240506-162AE-src
patch -Np0 -i $srcdir/lsp-gpr_files.adb-patch
}
build()
{
cd $srcdir/als-25.0w-20240506-162AE-src
make -j16 BUILD_MODE=prod all
export LIBRARY_TYPE=relocatable
gprbuild -j16 gnat/lsp_client_glib.gpr
}
package()
{
cd $srcdir/als-25.0w-20240506-162AE-src
make BUILD_MODE=prod LIBRARY_TYPE=relocatable DESTDIR=$pkgdir/usr install
export LIBRARY_TYPE=relocatable
gprinstall --prefix=$pkgdir/usr -p gnat/lsp_client_glib.gpr
# Rid clone of 'gnatcoll.gpr'.
#
rm $pkgdir/usr/share/gpr/gnatcoll.gpr
rm $pkgdir/usr/share/gpr/manifests/gnatcoll
}
|