mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
New package: probe-rs-0.29.1
This commit is contained in:
parent
049c67ba38
commit
fd6a305d5c
2 changed files with 70 additions and 0 deletions
48
srcpkgs/probe-rs/patches/skip-missing-target-tests.patch
Normal file
48
srcpkgs/probe-rs/patches/skip-missing-target-tests.patch
Normal file
|
@ -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");
|
||||
|
22
srcpkgs/probe-rs/template
Normal file
22
srcpkgs/probe-rs/template
Normal file
|
@ -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 <duncaen@voidlinux.org>"
|
||||
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"
|
||||
}
|
Loading…
Add table
Reference in a new issue