From 94b1bcb7b965add0606835ead2b6212ad3ad3149 Mon Sep 17 00:00:00 2001 From: tranzystorekk Date: Sun, 25 May 2025 23:16:54 +0200 Subject: [PATCH] taplo: update to 0.10.0 --- srcpkgs/taplo/patches/update-pprof.patch | 14 -------------- srcpkgs/taplo/template | 22 +++++++++++++--------- 2 files changed, 13 insertions(+), 23 deletions(-) delete mode 100644 srcpkgs/taplo/patches/update-pprof.patch diff --git a/srcpkgs/taplo/patches/update-pprof.patch b/srcpkgs/taplo/patches/update-pprof.patch deleted file mode 100644 index 8a66c89d2f8..00000000000 --- a/srcpkgs/taplo/patches/update-pprof.patch +++ /dev/null @@ -1,14 +0,0 @@ -# old version does not have all features needed for checks on i686 -diff --git a/crates/taplo/Cargo.toml b/crates/taplo/Cargo.toml -index 966ba1db30..7912352478 100644 ---- a/crates/taplo/Cargo.toml -+++ b/crates/taplo/Cargo.toml -@@ -36,7 +36,7 @@ serde = { version = "1", features = ["derive"], optional = true } - assert-json-diff = "2" - criterion = "0.3" - difference = "2.0.0" --pprof = { version = "0.9.1", features = ["flamegraph", "criterion"] } -+pprof = { version = "0.13.0", features = ["flamegraph", "criterion"] } - serde_json = "1" - toml = "0.5" - diff --git a/srcpkgs/taplo/template b/srcpkgs/taplo/template index bc52fe99f71..d32ff32992e 100644 --- a/srcpkgs/taplo/template +++ b/srcpkgs/taplo/template @@ -1,13 +1,16 @@ # Template file for 'taplo' pkgname=taplo -version=0.9.3 +version=0.10.0 revision=1 build_style=cargo +build_wrksrc="crates/taplo-cli" +build_helper="qemu" # no-default-features: allows selecting custom feature set +# completions: enables completion script generation +# lint: adds a linter subcommand # lsp: builds TOML language server # native-tls: Enables linking against system SSL instead of rustls/ring -configure_args="--no-default-features --features lsp,native-tls" -make_install_args="--path crates/taplo-cli" +configure_args="--no-default-features --features completions,lint,lsp,native-tls" hostmakedepends="pkg-config" makedepends="openssl-devel" short_desc="TOML toolkit written in Rust" @@ -16,12 +19,13 @@ license="MIT" homepage="https://taplo.tamasfe.dev/" changelog="https://raw.githubusercontent.com/tamasfe/taplo/master/crates/taplo-cli/CHANGELOG.md" distfiles="https://github.com/tamasfe/taplo/archive/refs/tags/release-taplo-cli-${version}.tar.gz" -checksum=5744a06a1e93128f5cb5409d5bf5e553915703ec0491df9f4c7ab31dbe430287 - -post_patch() { - cargo update --package pprof@0.9.1 --precise 0.13.0 -} +checksum=eaec8435bfb5ccd89f7b4dd09385b6be25c2ff00aa25417cb82c88a59d4ccde0 post_install() { - vlicense LICENSE.md + vlicense ../../LICENSE + + for _shell in bash fish zsh; do + vtargetrun ${DESTDIR}/usr/bin/taplo completions ${_shell} > taplo.${_shell} + vcompletion taplo.${_shell} ${_shell} + done }