Skip to content

Commit

Permalink
replace(main/typst-lsp -> main/tinymist): replace with successor proj…
Browse files Browse the repository at this point in the history
…ect (#22508)
  • Loading branch information
TomJo2000 authored Dec 11, 2024
1 parent 9a3cd38 commit ee18559
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 49 deletions.
54 changes: 54 additions & 0 deletions packages/tinymist/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
TERMUX_PKG_HOMEPAGE=https://myriad-dreamin.github.io/tinymist
TERMUX_PKG_DESCRIPTION="An integrated language service for Typst"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="Joshua Kahn @TomJo2000"
TERMUX_PKG_VERSION=0.12.10
TERMUX_PKG_SRCURL=https://github.com/Myriad-Dreamin/tinymist/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=65d12ed3c385d10d8ffda7f1234020b2fa21ee29f323d8e0f4bbfbe46a59d62b
TERMUX_PKG_BLACKLISTED_ARCHES="i686"
TERMUX_PKG_DEPENDS="openssl"
TERMUX_PKG_BREAKS="typst-lsp"
TERMUX_PKG_REPLACES="typst-lsp"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_VERSION_REGEXP='\d+\.\d+\.\d+'


termux_step_pre_configure() {
# We're not shipping the VS Code plugin
rm -rf .vscode
termux_setup_rust
unset CFLAGS # clash with rust host build

: "${CARGO_HOME:=$HOME/.cargo}"
export CARGO_HOME
export OPENSSL_NO_VENDOR=1
export PKG_CONFIG_ALL_DYNAMIC=1

cargo fetch --locked --target "$CARGO_TARGET_NAME"
}

termux_step_make() {
cargo build \
--jobs "$TERMUX_PKG_MAKE_PROCESSES" \
--target "$CARGO_TARGET_NAME" \
--release
}

termux_step_make_install() {
install -Dm700 -t "$TERMUX_PREFIX/bin" target/"${CARGO_TARGET_NAME}"/release/tinymist
install -Dm700 -t "$TERMUX_PREFIX/bin" target/"${CARGO_TARGET_NAME}"/release/typlite

mkdir -p "${TERMUX_PREFIX}/share/elvish/lib"
mkdir -p "${TERMUX_PREFIX}/share/zsh/site-functions"
mkdir -p "${TERMUX_PREFIX}/share/nushell/vendor/autoload"
mkdir -p "${TERMUX_PREFIX}/share/fish/vendor_completions.d"
mkdir -p "${TERMUX_PREFIX}/share/bash-completion/completions"
cargo run --bin tinymist -- completion zsh > "${TERMUX_PREFIX}/share/zsh/site-functions/_tinymist"
cargo run --bin tinymist -- completion bash > "${TERMUX_PREFIX}/share/bash-completion/completions/tinymist"
cargo run --bin tinymist -- completion fish > "${TERMUX_PREFIX}/share/fish/vendor_completions.d/tinymist.fish"
cargo run --bin tinymist -- completion elvish > "${TERMUX_PREFIX}/share/elvish/lib/tinymist.elv"
cargo run --bin tinymist -- completion nushell > "${TERMUX_PREFIX}/share/nushell/vendor/autoload/tinymist.nu"
# there are currently no completions for typlite
# and despite `clap_mangen` being present there is currently no manpages
}
34 changes: 0 additions & 34 deletions packages/typst-lsp/build.sh

This file was deleted.

15 changes: 0 additions & 15 deletions packages/typst-lsp/time-items-format_items.diff

This file was deleted.

0 comments on commit ee18559

Please sign in to comment.