diff --git a/srcpkgs/probe-rs/patches/skip-missing-target-tests.patch b/srcpkgs/probe-rs/patches/skip-missing-target-tests.patch new file mode 100644 index 00000000000..6d1383aa584 --- /dev/null +++ b/srcpkgs/probe-rs/patches/skip-missing-target-tests.patch @@ -0,0 +1,48 @@ +--- a/probe-rs-tools/src/bin/probe-rs/util/cargo.rs ++++ b/probe-rs-tools/src/bin/probe-rs/util/cargo.rs +@@ -164,45 +164,6 @@ + } + + #[test] +- fn get_binary_artifact_with_cargo_config() { +- let work_dir = test_project_dir("binary_cargo_config"); +- +- let mut expected_path = work_dir.join("target"); +- expected_path.push("thumbv7m-none-eabi"); +- expected_path.push("debug"); +- expected_path.push("binary_cargo_config"); +- +- let args = []; +- +- let binary_artifact = +- build_artifact(&work_dir, &args).expect("Failed to read artifact path."); +- +- assert_eq!( +- binary_artifact.path(), +- dunce::canonicalize(expected_path).expect("Failed to canonicalize path") +- ); +- } +- +- #[test] +- fn get_binary_artifact_with_cargo_config_toml() { +- let work_dir = test_project_dir("binary_cargo_config_toml"); +- let mut expected_path = work_dir.join("target"); +- expected_path.push("thumbv7m-none-eabi"); +- expected_path.push("debug"); +- expected_path.push("binary_cargo_config_toml"); +- +- let args = []; +- +- let binary_artifact = +- build_artifact(&work_dir, &args).expect("Failed to read artifact path."); +- +- assert_eq!( +- binary_artifact.path(), +- dunce::canonicalize(expected_path).expect("Failed to canonicalize path") +- ); +- } +- +- #[test] + fn get_library_artifact_fails() { + let work_dir = test_project_dir("library_project"); + diff --git a/srcpkgs/probe-rs/template b/srcpkgs/probe-rs/template new file mode 100644 index 00000000000..865363ddd3e --- /dev/null +++ b/srcpkgs/probe-rs/template @@ -0,0 +1,22 @@ +# Template file for 'probe-rs' +pkgname=probe-rs +version=0.29.1 +revision=1 +build_style=cargo +make_build_args="--package probe-rs-tools" +hostmakedepends="pkg-config" +makedepends="eudev-libudev-devel libzstd-devel" +short_desc="Modern, embedded debugging toolkit, written in Rust" +maintainer="Duncaen " +license="Apache-2.0 OR MIT" +homepage="https://probe.rs/" +changelog="https://raw.githubusercontent.com/probe-rs/probe-rs/refs/heads/master/CHANGELOG.md" +distfiles="https://github.com/probe-rs/probe-rs/archive/refs/tags/v${version}.tar.gz" +checksum=d0c7e8fe4d8b5795ba9cd3e7f09f91ae1373a3226f106ab09776ec6dc646b8ab + +do_install() { + vlicense LICENSE-MIT + vbin "target/${RUST_TARGET}/release/probe-rs" + vbin "target/${RUST_TARGET}/release/cargo-flash" + vbin "target/${RUST_TARGET}/release/cargo-embed" +}