blob: d10af4eb6c5fe19099e38f8c872dc8550d19d280 (
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
|
# Maintainer: Ralph Torres <mail at ralphptorr dot es>
# Contributor: Henrik Laxhuber <henrik at laxhuber dot com>
_pkgname=texlab
pkgname=$_pkgname-git
pkgver=5.12.0.r0.b4c5d27
pkgrel=1
pkgdesc='An implementation of the Language Server Protocol for LaTeX'
arch=(any)
url=https://github.com/latex-lsp/texlab
license=(MIT)
provides=($_pkgname)
conflicts=($_pkgname)
makedepends=(git cargo)
source=(git+$url)
sha256sums=(SKIP)
pkgver() {
cd "$srcdir"/$_pkgname
git describe --tags --long --abbrev=7 |\
sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/^v//'
}
prepare() {
export RUSTUP_TOOLCHAIN=stable
cd "$srcdir"/$_pkgname
cargo update
cargo fetch --locked --target $CARCH-unknown-linux-gnu
}
build () {
cd "$srcdir"/$_pkgname
cargo build --frozen --release --all-features
}
check() {
export RUSTUP_TOOLCHAIN=stable
cd "$srcdir"/$_pkgname
cargo test --frozen --workspace --all-features
}
package() {
cd "$srcdir"/$_pkgname
install -Dm755 -t "$pkgdir"/usr/bin target/release/$_pkgname
install -Dm644 -t "$pkgdir"/usr/share/licenses/$_pkgname LICENSE
install -Dm644 -t "$pkgdir"/usr/share/doc/$_pkgname CHANGELOG.md README.md
}
|