Skip to content

Commit

Permalink
Merge pull request #50: Add nextclade3 via direct download
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin authored Dec 22, 2023
2 parents fc57c78 + 0739e7b commit c85a27d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail -x
mkdir -p "$PREFIX"/bin

# envdir
cp -v "$SRC_DIR"/envdir "$PREFIX"/bin/envdir

# Nextclade v3
curl -fsSL -o "$PREFIX"/bin/nextclade3 https://github.com/nextstrain/nextclade/releases/download/3.0.0-alpha.1/nextclade-$("$SRC_DIR"/target-triple)
chmod a+rx "$PREFIX"/bin/nextclade3
2 changes: 2 additions & 0 deletions src/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ requirements:
#
- awscli
- bash
# Pin Biopython 1.81: https://github.com/nextstrain/augur/issues/1373
- biopython =1.81
- bzip2
- csvtk
- curl
Expand Down
23 changes: 23 additions & 0 deletions src/target-triple
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
#
# Get the target triple from uname.
#
set -euo pipefail

kernel="$(uname -s)"
machine="$(uname -m)"

case "$kernel/$machine" in
Linux/x86_64)
echo "x86_64-unknown-linux-gnu";;

Darwin/x86_64)
echo "x86_64-apple-darwin";;

Darwin/arm64)
echo "aarch64-apple-darwin";;

*)
echo "unsupported kernel/machine: $kernel/$machine" >&2
exit 1;;
esac

0 comments on commit c85a27d

Please sign in to comment.