mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-04 05:12:37 +02:00
55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
|
maintainer="lauren n. liberda <lauren@selfisekai.rocks>"
|
|
pkgname=tinymist
|
|
pkgver=0.14.10
|
|
pkgrel=0
|
|
pkgdesc="Language service for Typst"
|
|
url="https://github.com/Myriad-Dreamin/tinymist"
|
|
# armhf, armv7: failing tests
|
|
# riscv64: failing test - triggers panic in rust libcore
|
|
# s390x: failing tests - looks like endianness
|
|
# x86: failing asserts in reflexo crate
|
|
arch="all !armhf !armv7 !riscv64 !s390x !x86"
|
|
license="Apache-2.0"
|
|
makedepends="
|
|
cargo
|
|
cargo-auditable
|
|
openssl-dev
|
|
"
|
|
subpackages="typlite:_typlite"
|
|
source="
|
|
https://github.com/Myriad-Dreamin/tinymist/archive/v$pkgver/tinymist-$pkgver.tar.gz
|
|
"
|
|
|
|
export OPENSSL_NO_VENDOR=1
|
|
export PKG_CONFIG_ALL_DYNAMIC=1
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --frozen --release -p tinymist-cli
|
|
cargo auditable build --frozen --release -p typlite -F cli --bin typlite
|
|
}
|
|
|
|
check() {
|
|
# tests package is e2e tests. they don't simply work.
|
|
cargo test --frozen --workspace --exclude tests
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/tinymist target/release/typlite -t "$pkgdir"/usr/bin/
|
|
}
|
|
|
|
_typlite() {
|
|
pkgdesc="CLI tool to convert a subset of Typst to Markdown"
|
|
amove usr/bin/typlite
|
|
}
|
|
|
|
sha512sums="
|
|
4c75b1cfd2d145ef6edf61fcb036025bc5e159efaf2dcaf3aece411808aeef48d3c2b34381ba9950f2890b0a3ee57e1728d9a1f1d50ee152ee7231b76cdd9ff1 tinymist-0.14.10.tar.gz
|
|
"
|