Skip to content

Commit

Permalink
Merge pull request #10 from metagenlab/bugfix/conda
Browse files Browse the repository at this point in the history
Bugfix/conda
  • Loading branch information
bkm authored Sep 21, 2022
2 parents 393fee3 + bc81e5d commit a3d18e9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
13 changes: 12 additions & 1 deletion bin/zdb
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
#!/usr/bin/env bash

VERSION="1.0.0"

# This will get replaced by conda installation script to point
# to the correct version.
VERSION="version"

# Hack to know the installation folder
CONDA=$(which zdb | sed 's=bin/zdb==')

# The value of this variable will be replaced by the conda installation script
# to point to the folder where all the nextflow scripts are installed.
#
# If you are running a version from github, just point it to the checked out
# directory.
NEXTFLOW_DIR="${CONDA}/share/zdb-${VERSION}/"


Expand Down
3 changes: 2 additions & 1 deletion conda/recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ ZDB_DIR="${PREFIX}/share/${ZDB}"

mkdir -p ${PREFIX}/bin ${ZDB_DIR}

sed "s/nextflow_dir_val/${ZDB_DIR//\//\\/}/" bin/zdb > ${PREFIX}/bin/zdb
sed "s=version=$PKG_VERSION=" bin/zdb > ${PREFIX}/bin/zdb

chmod u+x ${PREFIX}/bin/zdb

mv bin/ annotation_pipeline.nf nextflow.config db_setup.nf zdb/ docs/ FAQ.txt README.md ${ZDB_DIR}
8 changes: 4 additions & 4 deletions conda/recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{% set version = "1.0.0" %}
{% set version = "1.0.4" %}

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

build:
number: 0
number: 3

source:
url: https://github.com/metagenlab/zDB/archive/refs/tags/v1.0.2.tar.gz
sha256: 5b2cd965a496b525cf582ab19b32155e4e515f9b836e7bbfefbbbc9cbad0868b
url: https://github.com/metagenlab/zDB/archive/refs/tags/v1.0.4.2-alpha.tar.gz
sha256: 5fdeadfd6db555a94b035625a1d2694b446391f0b2d974b4f57999e731851229


requirements:
Expand Down

0 comments on commit a3d18e9

Please # to comment.