Skip to content

Commit d424078

Browse files
Add chaintools (#64401)
* feat: add fxsplit recipe * Add chaintools * fix: revert wrong branh commits * Update build.sh * Update meta.yaml --------- Co-authored-by: Joshua Zhuang <71105179+mencian@users.noreply.github.com>
1 parent 788e03f commit d424078

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

recipes/chaintools/build.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
set -xe
3+
4+
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib"
5+
export CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include"
6+
export CFLAGS="${CFLAGS} -O3 -Wno-implicit-function-declaration"
7+
8+
cargo-bundle-licenses --format yaml --output THIRDPARTY.yml
9+
10+
# build statically linked binary with Rust
11+
RUST_BACKTRACE=1 cargo install --locked --no-track --verbose --path . --root "${PREFIX}"

recipes/chaintools/meta.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{% set name = "chaintools" %}
2+
{% set version = "0.0.2" %}
3+
4+
package:
5+
name: {{ name }}
6+
version: {{ version }}
7+
8+
source:
9+
url: https://github.com/alejandrogzi/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz
10+
sha256: d1a43ec65fb2d593919e517bf2b9da5855b272a115d68bcdf37dd1ddadcaf493
11+
12+
build:
13+
number: 0
14+
run_exports:
15+
- {{ pin_subpackage(name, max_pin="x.x") }}
16+
17+
requirements:
18+
build:
19+
- {{ compiler("cxx") }}
20+
- {{ compiler("rust") }}
21+
- cargo-bundle-licenses
22+
- cmake
23+
- make
24+
- pkg-config
25+
26+
test:
27+
commands:
28+
- chaintools --help
29+
- chaintools --version
30+
31+
about:
32+
home: "https://github.com/alejandrogzi/chaintools"
33+
license: "Apache-2.0"
34+
license_family: APACHE
35+
license_file:
36+
- LICENSE
37+
- THIRDPARTY.yml
38+
summary: "work with .chain files in rust"
39+
dev_url: "https://github.com/alejandrogzi/chaintools"
40+
41+
extra:
42+
additional-platforms:
43+
- linux-aarch64
44+
- osx-arm64
45+
recipe-maintainers:
46+
- alejandrogzi
47+
skip-lints:
48+
- compiler_needs_stdlib_c

0 commit comments

Comments
 (0)