26 lines
1.0 KiB
Makefile
26 lines
1.0 KiB
Makefile
package=librustzcash
|
|
$(package)_version=0.1
|
|
$(package)_download_path=https://github.com/zcash/$(package)/archive/
|
|
$(package)_file_name=$(package)-$($(package)_git_commit).tar.gz
|
|
$(package)_download_file=$($(package)_git_commit).tar.gz
|
|
$(package)_sha256_hash=ed8de6f820f4441a80457a25db022168df09ca945302d27004975b0d71c32718
|
|
$(package)_git_commit=0ef61e6d460e49e70202f8599bbdb2d39e41d061
|
|
$(package)_dependencies=rust $(rust_crates)
|
|
$(package)_patches=cargo.config
|
|
|
|
define $(package)_preprocess_cmds
|
|
mkdir .cargo && \
|
|
cat $($(package)_patch_dir)/cargo.config | sed 's|CRATE_REGISTRY|$(host_prefix)/$(CRATE_REGISTRY)|' > .cargo/config
|
|
endef
|
|
|
|
define $(package)_build_cmds
|
|
cargo build --frozen --release
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
mkdir $($(package)_staging_dir)$(host_prefix)/lib/ && \
|
|
mkdir $($(package)_staging_dir)$(host_prefix)/include/ && \
|
|
cp target/release/librustzcash.a $($(package)_staging_dir)$(host_prefix)/lib/ && \
|
|
cp include/librustzcash.h $($(package)_staging_dir)$(host_prefix)/include/
|
|
endef
|