Skip to content

Commit

Permalink
yak: add aarch64/arm64 build (bioconda#49796)
Browse files Browse the repository at this point in the history
* yak: add aarch64/arm64 build

* edit build.sh

* edit build.sh

* edit build.sh
  • Loading branch information
mencian authored Aug 8, 2024
1 parent 0914a5b commit 8334efe
Show file tree
Hide file tree
Showing 3 changed files with 786 additions and 9 deletions.
14 changes: 10 additions & 4 deletions recipes/yak/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/bin/bash
#!/bin/bash -ex

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

make INCLUDES="-I$PREFIX/include" CFLAGS="-g -Wall -O2 -L$PREFIX/lib"
cp yak $PREFIX/bin
#install_name_tool error fix
if [[ "$(uname)" == Darwin ]]; then
export LDFLAGS="${LDFLAGS} -Wl,-rpath,${PREFIX}/lib -headerpad_max_install_names"
fi

make INCLUDES="-I${PREFIX}/include" CFLAGS="${CFLAGS} -g -Wall -O3 -L${PREFIX}/lib"
cp -rf yak ${PREFIX}/bin
chmod 755 ${PREFIX}/bin/yak
21 changes: 16 additions & 5 deletions recipes/yak/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,35 @@ package:
source:
url: https://github.com/lh3/yak/archive/v{{ version }}.tar.gz
sha256: a4237af25005eb8e7e721519c62d6bbcf203bf0a572506af63c3f6ecb6b11836
patches:
- yak.patch

build:
number: 4
number: 5
run_exports:
- {{ pin_subpackage('yak', max_pin="x.x") }}

requirements:
build:
- make
- {{ compiler('c') }}
host:
- zlib
run:
- zlib

test:
commands:
- yak 2>&1 | grep 'Usage'

about:
home: https://github.com/lh3/yak
home: "https://github.com/lh3/yak"
license: MIT
summary: 'Yet another k-mer analyzer'
license_family: MIT
license_file: LICENSE.txt
summary: 'Yet another k-mer analyzer.'
dev_url: "https://github.com/lh3/yak"
doc_url: "https://github.com/lh3/yak/blob/v{{ version }}/README.md"

extra:
additional-platforms:
- linux-aarch64
- osx-arm64
Loading

0 comments on commit 8334efe

Please sign in to comment.