asm-lsp: update to 0.10.0 (#23985)
This commit is contained in:
committed by
GitHub
parent
2ec89e0392
commit
18a0788518
@@ -3,7 +3,7 @@
|
||||
_realname=asm-lsp
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
|
||||
pkgver=0.9.0
|
||||
pkgver=0.10.0
|
||||
pkgrel=1
|
||||
pkgdesc="Language server for NASM/GAS/GO Assembly (mingw-w64)"
|
||||
arch=('any')
|
||||
@@ -15,20 +15,35 @@ msys2_references=(
|
||||
msys2_repository_url='https://github.com/bergercookie/asm-lsp'
|
||||
url='https://crates.io/crates/asm-lsp'
|
||||
license=('spdx:BSD-2-Clause')
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-rust")
|
||||
source=("https://github.com/bergercookie/asm-lsp/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz")
|
||||
sha256sums=('863bdc5aad7039f7f355e09a2a759adbef6ea40b9efb3085f7bee4a382d79e11')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-zstd")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-rust" "${MINGW_PACKAGE_PREFIX}-pkgconf")
|
||||
source=("https://github.com/bergercookie/asm-lsp/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz"
|
||||
"zstd-sys.tar.gz::https://crates.io/api/v1/crates/zstd-sys/2.0.13+zstd.1.5.6/download"
|
||||
"zstd-sys-remove-statik.patch")
|
||||
sha256sums=('4755848aa7d88856be7e40d0930990b95b46c4593a53db3809d3ba7214d9d16d'
|
||||
'38ff0f21cfee8f97d94cef41359e0c89aa6113028ab0291aa8ca0038995a95aa'
|
||||
'48f4900ceb02d3aaf9a1020f33d56629156e96759f456c0e7ca18bfcf910767b')
|
||||
|
||||
prepare() {
|
||||
cd "${_realname}-${pkgver}"
|
||||
|
||||
patch -d "../zstd-sys-2.0.13+zstd.1.5.6" -i "../zstd-sys-remove-statik.patch"
|
||||
cat >> Cargo.toml <<END
|
||||
|
||||
[patch.crates-io]
|
||||
zstd-sys = { path = "../zstd-sys-2.0.13+zstd.1.5.6" }
|
||||
END
|
||||
|
||||
cargo update -p zstd-sys
|
||||
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${_realname}-${pkgver}"
|
||||
|
||||
cargo build --release --frozen
|
||||
export ZSTD_SYS_USE_PKG_CONFIG=1
|
||||
export RUSTFLAGS="-C target-feature=-crt-static"
|
||||
cargo build --release --frozen --bin asm-lsp
|
||||
}
|
||||
|
||||
package() {
|
||||
|
||||
10
mingw-w64-asm-lsp/zstd-sys-remove-statik.patch
Normal file
10
mingw-w64-asm-lsp/zstd-sys-remove-statik.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- a/build.rs
|
||||
+++ b/build.rs
|
||||
@@ -41,7 +41,6 @@ fn generate_bindings(_: Vec<&str>, _: Vec<PathBuf>) {}
|
||||
|
||||
fn pkg_config() -> (Vec<&'static str>, Vec<PathBuf>) {
|
||||
let library = pkg_config::Config::new()
|
||||
- .statik(true)
|
||||
.cargo_metadata(!cfg!(feature = "non-cargo"))
|
||||
.probe("libzstd")
|
||||
.expect("Can't probe for zstd in pkg-config");
|
||||
Reference in New Issue
Block a user