From 4bbe673b4247da53dc0a42ba94daec8613c7b283 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Fri, 11 Aug 2023 15:10:58 -0400 Subject: [PATCH] typst-lsp: update to 0.9.0. --- .../patches/revert-reqwest-target.patch | 42 +++++++++++++++++++ srcpkgs/typst-lsp/template | 10 ++++- 2 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/typst-lsp/patches/revert-reqwest-target.patch diff --git a/srcpkgs/typst-lsp/patches/revert-reqwest-target.patch b/srcpkgs/typst-lsp/patches/revert-reqwest-target.patch new file mode 100644 index 00000000000..2eeb8fab6d5 --- /dev/null +++ b/srcpkgs/typst-lsp/patches/revert-reqwest-target.patch @@ -0,0 +1,42 @@ +reverts 1e368ed9759671c5f4658dc37b186a1f9bdc9ff8 +see https://github.com/nvarner/typst-lsp/issues/234 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -34,6 +34,7 @@ + ], optional = true } + parking_lot = "0.12.1" + regex = "1.8.1" ++reqwest = { version = "0.11.18", features = ["stream"] } + same-file = "1.0" + serde = { version = "1.0", features = ["derive"] } + serde_json = "1.0.94" +@@ -60,29 +61,5 @@ + typst-library = { git = "https://github.com/typst/typst.git", tag = "v0.7.0" } + walkdir = "2.3" + +-[target.'cfg(not(any(all(target_arch = "aarch64", target_os = "linux"), all(target_arch = "x86_64", target_os = "linux", target_env = "musl"), all(target_arch = "arm", target_os = "linux", target_env = "gnu"))))'.dependencies] +-reqwest = { version = "0.11.18", default-features = false, features = [ +- "stream", +- "default-tls", +-] } +- +-[target.aarch64-unknown-linux-gnu.dependencies] +-reqwest = { version = "0.11.18", default-features = false, features = [ +- "stream", +- "rustls-tls", +-] } +- +-[target.x86_64-unknown-linux-musl.dependencies] +-reqwest = { version = "0.11.18", default-features = false, features = [ +- "stream", +- "rustls-tls", +-] } +- +-[target.arm-unknown-linux-gnueabihf.dependencies] +-reqwest = { version = "0.11.18", default-features = false, features = [ +- "stream", +- "rustls-tls", +-] } +- + [dev-dependencies] + temp-dir = "0.1.11" diff --git a/srcpkgs/typst-lsp/template b/srcpkgs/typst-lsp/template index 53b5cde5979..3c412cd0c6a 100644 --- a/srcpkgs/typst-lsp/template +++ b/srcpkgs/typst-lsp/template @@ -1,14 +1,20 @@ # Template file for 'typst-lsp' pkgname=typst-lsp -version=0.7.2 +version=0.9.0 revision=1 build_style=cargo +hostmakedepends="pkg-config" +makedepends="openssl-devel" short_desc="Language server for Typst" maintainer="classabbyamp " license="Apache-2.0, MIT" homepage="https://github.com/nvarner/typst-lsp" distfiles="https://github.com/nvarner/typst-lsp/archive/refs/tags/v${version}.tar.gz" -checksum=45023dc67276b87856ce5189ae904f408162521dde390d302ca01a928765ca08 +checksum=fbebdff828c9f4be6899e4e8884f9d46ac5f5b5de17fda45df7dbb4d79b51f30 + +post_patch() { + cargo generate-lockfile +} post_install() { vlicense LICENSE-MIT.txt