diff --git a/recipes/serial-monitor-rust/recipe.yaml b/recipes/serial-monitor-rust/recipe.yaml new file mode 100644 index 0000000..cbcd831 --- /dev/null +++ b/recipes/serial-monitor-rust/recipe.yaml @@ -0,0 +1,65 @@ +context: + version: "0.3.3" + +package: + name: serial-monitor-rust + version: ${{ version }} + +source: + - url: https://github.com/hacknus/serial-monitor-rust/archive/refs/tags/v${{ version }}.tar.gz + sha256: 46f8a22100c504e9d7e5231a8e67cb7c1972e7105f61403475d98f3b9ec85abc + +build: + number: 0 + script: + # display the rust version + - rustc --version + - cargo --version + - if: osx + then: + - export MACOSX_DEPLOYMENT_TARGET=10.15 # minimum os version + # build and install serial-monitor-rust + - cargo-bundle-licenses --format yaml --output ${SRC_DIR}/THIRDPARTY.yml + - cargo install --locked --bins --root ${PREFIX} --path . + +requirements: + build: + - if: win + then: + # at least rust 1.82 is required for serial-monitor-rust + - rust=1.82 # required on windows explicitly, on macOS and linux the latest version is already installed + + host: + - cargo-bundle-licenses + - pkg-config + - if: linux + then: + - ${{ compiler('rust') }} + - ${{ compiler('c') }} + - ${{ compiler('cxx') }} + # on linux, egui requires additional dependencies + - conda-forge::libclang + - conda-forge::gtk3 + - conda-forge::libxcb + - conda-forge::libxkbcommon + - conda-forge::openssl + - conda-forge::libudev + + run: + - if: linux + then: + # on linux, egui requires additional dependencies + - conda-forge::libclang + - conda-forge::gtk3 + - conda-forge::libxcb + - conda-forge::libxkbcommon + - conda-forge::openssl + - conda-forge::libudev + +about: + repository: https://github.com/hacknus/serial-monitor-rust + license: GPL-3.0 + summary: A cross-platform serial monitor/plotter written entirely in rust. +extra: + recipe-maintainers: + - hacknus