summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25fd20de873ae6403cad7b169ef980290fbdd5b0 (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
# Maintainer: Tim Lagnese <tim at inept tech>

pkgname=ada_language_server
pkgver=22.0.0
pkgrel=3
epoch=2

pkgdesc='High performance syntactic and semantic engine for the Ada programming language'
url='https://github.com/AdaCore/ada_language_server/'
arch=('x86_64')
license=('GPL3')

depends=('libadalang-tools' 'gtkada' 'libvss' 'ada_spawn' 'ada-libfswatch')
makedepends=('gcc-ada' 'gprbuild')

source=("https://github.com/AdaCore/ada_language_server/archive/refs/tags/v${pkgver}.zip"
        "als.patch")
sha1sums=('9ad4dd52e6553d5ace5d07eb476a299fa049be1e'
          'a3905d1ee3a4a84fdbbb1a8f5fd1c6deb2b767ba')

prepare() {
    cd "$srcdir/$pkgname-$pkgver"
    patch --strip=1 < ../als.patch
}

build() {
    cd "$srcdir/$pkgname-$pkgver"
    make BUILD_MODE=prod
}

#check() {
#    cd "$srcdir/$pkgname-$pkgver"
#    make check
#}

package() {
    cd "$srcdir/$pkgname-$pkgver"

	make BUILD_MODE=prod LIBRARY_TYPE=relocatable DESTDIR="$pkgdir/usr" install
}