From 812c9a3149f8c33f66e9af5941b8901bc959e9e1 Mon Sep 17 00:00:00 2001 From: Arya Massarat <23412689+aryarm@users.noreply.github.com> Date: Fri, 15 Nov 2024 19:09:12 +0000 Subject: [PATCH] add gfabase recipe --- recipes/gfabase/build.sh | 11 +++++++++++ recipes/gfabase/meta.yaml | 40 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 recipes/gfabase/build.sh create mode 100644 recipes/gfabase/meta.yaml diff --git a/recipes/gfabase/build.sh b/recipes/gfabase/build.sh new file mode 100644 index 0000000..d510ae3 --- /dev/null +++ b/recipes/gfabase/build.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +set -eu + +if [ "$(uname)" == "Darwin" ]; then + export HOME=`mktemp -d` +fi + +cargo build --release + +mv target/release/gfabase "${PREFIX}/bin" diff --git a/recipes/gfabase/meta.yaml b/recipes/gfabase/meta.yaml new file mode 100644 index 0000000..40f103e --- /dev/null +++ b/recipes/gfabase/meta.yaml @@ -0,0 +1,40 @@ +{% set name = "gfabase" %} +{% set version = "0.6.0" %} +{% set sha256 = "d17ef77d2f57ace316a7b35d910c5cd73be2a0d70ec7fcd31f2d0e3afbe1273c" %} + +package: + name: {{ name }} + version: {{ version }} + +source: + url: https://github.com/mlin/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz + sha256: {{ sha256 }} + +build: + number: 0 + run_exports: + - {{ pin_subpackage('gfabase', max_pin="x.x") }} + +requirements: + build: + - git + - rust + +test: + commands: + - gfabase -h + +about: + home: https://github.com/mlin/gfabase + license: Apache License 2.0 + summary: GFA insert into GenomicSQLite + description: > + gfabase is a command-line tool for indexed storage of Graphical Fragment Assembly (GFA1) data + +extra: + additional-platforms: + - linux-aarch64 + recipe-maintainers: + - aryarm + skip-lints: + - should_be_noarch_generic # Rust's `cargo build` command makes this not a noarch recipe.