Skip to content

Commit

Permalink
Add samstrip (#53019)
Browse files Browse the repository at this point in the history
* Add samstrip

* Fix build.sh

---------

Co-authored-by: Martin Grigorov <[email protected]>
  • Loading branch information
apcamargo and martin-g authored Jan 3, 2025
1 parent 8c26f0d commit 5d14c87
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
7 changes: 7 additions & 0 deletions recipes/samstrip/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -xeuo

cargo-bundle-licenses --format yaml --output THIRDPARTY.yml
# Build statically linked binary with Rust
RUST_BACKTRACE=1 cargo install -v --locked --no-track --root $PREFIX --path .
42 changes: 42 additions & 0 deletions recipes/samstrip/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{% set name = "samstrip" %}
{% set version = "0.2.1" %}
{% set sha256 = "c14b4f0126bb28d7f74efc2d36d09cc22025b39c8fe802b9d37c9b75ada45095" %}

package:
name: {{ name }}
version: {{ version }}

build:
number: 0
run_exports:
- {{ pin_subpackage(name|lower, max_pin="x.x") }}

source:
url: https://github.com/jakobnissen/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz
sha256: {{ sha256 }}

requirements:
build:
- {{ compiler("rust") }}
- cargo-bundle-licenses
host:
run:

test:
commands:
- samstrip --help

about:
home: https://github.com/jakobnissen/samstrip
license: MIT
license_file:
- LICENSE
- THIRDPARTY.yml
summary: Strip SAM files of data not needed for alignment computations.

extra:
recipe-maintainers:
- apcamargo
additional-platforms:
- linux-aarch64
- osx-arm64

0 comments on commit 5d14c87

Please sign in to comment.