From 09ddc870dbd791e66b38d9b83a60a24dc3380ed8 Mon Sep 17 00:00:00 2001 From: Joshua Zhuang <71105179+mencian@users.noreply.github.com> Date: Tue, 29 Oct 2024 16:51:43 -0500 Subject: [PATCH] Add recipe for stxtyper v1.0.25 (#51792) * Add recipe for stxtyper v1.0.25 * add sha256 --- recipes/stxtyper/build.sh | 11 +++++++++++ recipes/stxtyper/meta.yaml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 recipes/stxtyper/build.sh create mode 100644 recipes/stxtyper/meta.yaml diff --git a/recipes/stxtyper/build.sh b/recipes/stxtyper/build.sh new file mode 100644 index 0000000000000..8a9a0bcd92388 --- /dev/null +++ b/recipes/stxtyper/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +export INCLUDES="-I${PREFIX}/include" +export LIBPATH="-L${PREFIX}/lib" +export CXXFLAGS="${CXXFLAGS} -O3" +export CPPFLAGS="${CPPFLAGS} -O3 -I${PREFIX}/include" +export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib" + +make CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" CPPFLAGS="${CPPFLAGS}" -j"${CPU_COUNT}" + +make install PREFIX="${PREFIX}" diff --git a/recipes/stxtyper/meta.yaml b/recipes/stxtyper/meta.yaml new file mode 100644 index 0000000000000..a6d1f4e54fd40 --- /dev/null +++ b/recipes/stxtyper/meta.yaml @@ -0,0 +1,36 @@ +{% set name = "stxtyper" %} +{% set version = "1.0.25" %} +{% set sha256 = "adc734340c6a10f1bfc34ca637197e93e1515d0231bd023b33ce4c07aab9578e" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/ncbi/stxtyper/archive/refs/tags/v{{ version }}.tar.gz + sha256: {{ sha256 }} + +build: + number: 0 + run_exports: + - {{ pin_subpackage('stxtyper', max_pin='x') }} + +requirements: + build: + - make + - {{ compiler('cxx') }} + host: + - zlib + run: + - blast + +test: + commands: + - "stxtyper -h" + +about: + home: https://github.com/ncbi/stxtyper + license: Public Domain + license_file: LICENSE + summary: 'Accurately type both known and unknown Shiga toxin operons from assembled genomic sequence.' + dev_url: https://github.com/ncbi/stxtyper