Skip to content

Commit

Permalink
clean up recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
mencian committed Oct 31, 2024
1 parent bbefd49 commit 7e3231a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
21 changes: 15 additions & 6 deletions recipes/derna/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,21 @@

set -xe

mkdir -p $PREFIX/bin

export C_INCLUDE_PATH=${PREFIX}/include
export LIBRARY_PATH=${PREFIX}/lib

mkdir build
cd build
cmake ..
make -j ${CPU_COUNT}
mkdir -p $PREFIX/bin
cp derna $PREFIX/bin
if [[ `uname` == "Darwin" ]]; then
export CONFIG_ARGS="-DCMAKE_FIND_FRAMEWORK=NEVER -DCMAKE_FIND_APPBUNDLE=NEVER"
else
export CONFIG_ARGS=""
fi

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_COMPILER="${CXX}" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
"${CONFIG_ARGS}"
cmake --build build -j ${CPU_COUNT} -v
chmod 0755 build/derna
mv build/derna $PREFIX/bin
5 changes: 3 additions & 2 deletions recipes/derna/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ test:
- derna -h

about:
home: https://github.com/elkebir-group/derna
home: "https://github.com/elkebir-group/derna"
license: BSD-3-Clause
license_family: BSD
license_file: LICENSE
summary: "RNA sequence design for a target protein sequence."
dev_url: https://github.com/elkebir-group/derna
dev_url: "https://github.com/elkebir-group/derna"
doc_url: "https://github.com/elkebir-group/derna/blob/v{{ version }}/README.md"

extra:
additional-platforms:
Expand Down

0 comments on commit 7e3231a

Please sign in to comment.