From 620d016dec6494e0235e03c2d746e12144673d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 27 Oct 2022 18:59:19 +0700 Subject: [PATCH] wasmtime: use create_wrksrc --- srcpkgs/wasmtime/template | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/srcpkgs/wasmtime/template b/srcpkgs/wasmtime/template index 888af785f36..836ed5513c8 100644 --- a/srcpkgs/wasmtime/template +++ b/srcpkgs/wasmtime/template @@ -2,6 +2,7 @@ pkgname=wasmtime version=0.25.0 revision=1 +create_wrksrc=yes archs="x86_64* i686* aarch64*" build_style=cargo short_desc="Standalone JIT-style runtime for WebAssembly, using Cranelift" @@ -33,15 +34,16 @@ do_check() { : } -pre_configure() { +post_extract() { + mv wasmtime-${version}/* . # move submodules to the proper location rmdir tests/spec_testsuite rmdir crates/c-api/wasm-c-api rmdir crates/wasi-common/WASI rmdir crates/wasi-crypto/spec - mv -v ../testsuite-${_spec_testsuite_commit} tests/spec_testsuite - mv -v ../wasm-c-api-${_wasm_c_api_commit} crates/c-api/wasm-c-api - mv -v ../WASI-${_WASI_commit} crates/wasi-common/WASI - mv -v ../wasi-crypto-${_wasi_crypto_commit} crates/wasi-crypto/spec + mv -v testsuite-${_spec_testsuite_commit} tests/spec_testsuite + mv -v wasm-c-api-${_wasm_c_api_commit} crates/c-api/wasm-c-api + mv -v WASI-${_WASI_commit} crates/wasi-common/WASI + mv -v wasi-crypto-${_wasi_crypto_commit} crates/wasi-crypto/spec }