mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 20:46:39 +02:00
55 lines
1.6 KiB
Text
55 lines
1.6 KiB
Text
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
|
maintainer="lauren n. liberda <lauren@selfisekai.rocks>"
|
|
pkgname=tinymist
|
|
pkgver=0.13.0
|
|
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
|
|
0001-fix-expose-and-default-to-no-content-hint-in-typlite.patch
|
|
"
|
|
|
|
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="
|
|
0daa0ad28fb73e77fff6daf6f430c112715d95b6877a5343bb9a6730f7bb70ddb0dc9d7b62991d4de90c31f8b3559618d17a178563b2358a55bc6b439b7b86e3 tinymist-0.13.0.tar.gz
|
|
e88e4db89a1ea28b10386bba0a1eabba573c650be0f8e3879ed1e88a5a2d2600d67c228fb09d7fdcfedd947350fcf891f2481bbb1b67c11efec25a9c62c61eb4 0001-fix-expose-and-default-to-no-content-hint-in-typlite.patch
|
|
"
|