mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-09 02:32:25 +01:00
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
# Maintainer: Dominika Liberda <ja@sdomi.pl>
|
|
# Contributor: Dominika Liberda <ja@sdomi.pl>
|
|
pkgname=texlab
|
|
pkgver=5.11.0
|
|
pkgrel=0
|
|
pkgdesc="Implementation of the Language Server Protocol for LaTeX"
|
|
url="https://github.com/latex-lsp/texlab"
|
|
# limited by rust/cargo
|
|
# armhf - fails to build
|
|
arch="x86_64 armv7 aarch64 x86 ppc64le"
|
|
license="GPL-3.0-or-later"
|
|
makedepends="cargo cargo-auditable"
|
|
source="https://github.com/latex-lsp/texlab/archive/refs/tags/v$pkgver/texlab-v$pkgver.tar.gz"
|
|
|
|
# tests OOM on 32-bit
|
|
# x86_64/ppc64le tests broken with some things in /tmp
|
|
case "$CARCH" in
|
|
x86|x86_64|ppc64le|armv7) options="!check" ;;
|
|
esac
|
|
|
|
export CARGO_PROFILE_RELEASE_PANIC="unwind"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --release --frozen
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/texlab -t "$pkgdir"/usr/bin/
|
|
}
|
|
|
|
sha512sums="
|
|
7198907608a1063ee1385ac855b74fd8d0e8ca3f7b65590111e81605f70b7c078a6e8c79d9b42bdc4abbd4abd4803c546660e59f79c4c3721913a25dc7f8ecfc texlab-v5.11.0.tar.gz
|
|
"
|