projects/aports·blob master · refs

55 lines · 1.4 KiB

1# Contributor: lauren n. liberda <[email protected]>
2maintainer="lauren n. liberda <[email protected]>"
3pkgname=tinymist
4pkgver=0.15.0
5pkgrel=0
6pkgdesc="Language service for Typst"
7url="https://github.com/Myriad-Dreamin/tinymist"
8# armhf, armv7: failing tests
9# riscv64: failing test - triggers panic in rust libcore
10# s390x: failing tests - looks like endianness
11# x86: failing asserts in reflexo crate
12arch="all !armhf !armv7 !riscv64 !s390x !x86"
13license="Apache-2.0"
14makedepends="
15 cargo
16 cargo-auditable
17 openssl-dev
18 "
19checkdepends="cage-run"
20subpackages="typlite:_typlite"
21source="
22 https://github.com/Myriad-Dreamin/tinymist/archive/v$pkgver/tinymist-$pkgver.tar.gz
23 "
24
25export OPENSSL_NO_VENDOR=1
26export PKG_CONFIG_ALL_DYNAMIC=1
27
28prepare() {
29 default_prepare
30
31 cargo fetch --target="$CTARGET" --locked
32}
33
34build() {
35 cargo auditable build --frozen --release -p tinymist-cli
36 cargo auditable build --frozen --release -p typlite -F cli --bin typlite
37}
38
39check() {
40 # tests package is e2e tests. they don't simply work.
41 cage-run cargo test --frozen --workspace --exclude tests
42}
43
44package() {
45 install -Dm755 target/release/tinymist target/release/typlite -t "$pkgdir"/usr/bin/
46}
47
48_typlite() {
49 pkgdesc="CLI tool to convert a subset of Typst to Markdown"
50 amove usr/bin/typlite
51}
52
53sha512sums="
544ffbb1bdb690a6ab8742bb4dca1660ef778242c660ad53bbdff5726db2699caf40d17f7fa8dc50d8ef68bf425ad5c02a6328a081532967f816674c3d60a92ab2 tinymist-0.15.0.tar.gz
55"