Updating package from zcash
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
package=librustzcash
|
package=librustzcash
|
||||||
$(package)_version=0.1
|
$(package)_version=0.1
|
||||||
$(package)_download_path=https://github.com/zcash/$(package)/archive
|
$(package)_download_path=https://github.com/zcash/$(package)/archive/
|
||||||
$(package)_file_name=$(package)-$($(package)_git_commit).tar.gz
|
$(package)_file_name=$(package)-$($(package)_git_commit).tar.gz
|
||||||
$(package)_download_file=$($(package)_git_commit).tar.gz
|
$(package)_download_file=$($(package)_git_commit).tar.gz
|
||||||
$(package)_sha256_hash=9909ec59fa7a411c2071d6237b3363a0bc6e5e42358505cf64b7da0f58a7ff5a
|
$(package)_sha256_hash=9909ec59fa7a411c2071d6237b3363a0bc6e5e42358505cf64b7da0f58a7ff5a
|
||||||
@@ -26,28 +26,13 @@ define $(package)_preprocess_cmds
|
|||||||
cat $($(package)_patch_dir)/cargo.config | sed 's|CRATE_REGISTRY|$(host_prefix)/$(CRATE_REGISTRY)|' > .cargo/config
|
cat $($(package)_patch_dir)/cargo.config | sed 's|CRATE_REGISTRY|$(host_prefix)/$(CRATE_REGISTRY)|' > .cargo/config
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ifeq ($(host_os),mingw32)
|
|
||||||
define $(package)_build_cmds
|
|
||||||
~/.cargo/bin/cargo build --release --target=x86_64-pc-windows-gnu --verbose
|
|
||||||
endef
|
|
||||||
else
|
|
||||||
define $(package)_build_cmds
|
define $(package)_build_cmds
|
||||||
cargo build --package librustzcash $($(package)_build_opts)
|
cargo build --package librustzcash $($(package)_build_opts)
|
||||||
endef
|
endef
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(host_os),mingw32)
|
|
||||||
define $(package)_stage_cmds
|
|
||||||
mkdir $($(package)_staging_dir)$(host_prefix)/lib/ && \
|
|
||||||
mkdir $($(package)_staging_dir)$(host_prefix)/include/ && \
|
|
||||||
cp target/x86_64-pc-windows-gnu/release/rustzcash.lib $($(package)_staging_dir)$(host_prefix)/lib/ && \
|
|
||||||
cp include/librustzcash.h $($(package)_staging_dir)$(host_prefix)/include/
|
|
||||||
endef
|
|
||||||
else
|
|
||||||
define $(package)_stage_cmds
|
define $(package)_stage_cmds
|
||||||
mkdir $($(package)_staging_dir)$(host_prefix)/lib/ && \
|
mkdir $($(package)_staging_dir)$(host_prefix)/lib/ && \
|
||||||
mkdir $($(package)_staging_dir)$(host_prefix)/include/ && \
|
mkdir $($(package)_staging_dir)$(host_prefix)/include/ && \
|
||||||
cp $($(package)_library_file) $($(package)_staging_dir)$(host_prefix)/lib/ && \
|
cp $($(package)_library_file) $($(package)_staging_dir)$(host_prefix)/lib/ && \
|
||||||
cp librustzcash/include/librustzcash.h $($(package)_staging_dir)$(host_prefix)/include/
|
cp librustzcash/include/librustzcash.h $($(package)_staging_dir)$(host_prefix)/include/
|
||||||
endef
|
endef
|
||||||
endif
|
|
||||||
|
|||||||
Reference in New Issue
Block a user