mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 17:22:07 +01:00
54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
|
maintainer="lauren n. liberda <lauren@selfisekai.rocks>"
|
|
pkgname=tinymist
|
|
pkgver=0.13.12
|
|
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
|
|
# x86: failing asserts in reflexo crate
|
|
arch="all !armhf !armv7 !riscv64 !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
|
|
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="
|
|
3474414f972d1a86d001b9fd2f815d86cb5f8ad733afb00e3836240db2f1be213d473c87fba697270289914d7a3e9e09e3a15d9feeae5fe9daaa8e67a28734fc tinymist-0.13.12.tar.gz
|
|
"
|