From 0cd5c1e2e85b258d06d2cd33fdbc833f63326b87 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Wed, 29 Jul 2020 20:15:00 +0200 Subject: [PATCH] New package: wasmtime-0.19.0 --- srcpkgs/wasmtime/template | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/wasmtime/template diff --git a/srcpkgs/wasmtime/template b/srcpkgs/wasmtime/template new file mode 100644 index 00000000000..026a4538f83 --- /dev/null +++ b/srcpkgs/wasmtime/template @@ -0,0 +1,26 @@ +# Template file for 'wasmtime' +pkgname=wasmtime +version=0.19.0 +revision=1 +build_style=cargo +short_desc="Standalone JIT-style runtime for WebAssembly, using Cranelift" +maintainer="Isaac Freund " +license="Apache-2.0" +homepage="https://github.com/bytecodealliance/wasmtime" +_wasm_c_api_commit=d9a80099d496b5cdba6f3fe8fc77586e0e505ddc +_WASI_commit=2b027d91c29e6141a3768e638076daa23f51621c +distfiles="${homepage}/archive/v${version}.tar.gz + https://github.com/WebAssembly/wasm-c-api/archive/${_wasm_c_api_commit}.tar.gz + https://github.com/WebAssembly/WASI/archive/${_WASI_commit}.tar.gz" +checksum="f569c74aacd4fe52c5fabe4fda9dd6c41bce72e8e467b52a38626bc0dbad1149 + aea8cd095e9937f1e14f2c93e026317b197eb2345e7a817fe3932062eb7b792c + caf4343207d9f3ec135aae8c113824a8b588db61538d210b22acd6ea7c6d485e" + +pre_configure() { + # move submodules to the proper location + mv -v ${XBPS_BUILDDIR}/wasm-c-api-*/* ${wrksrc}/crates/c-api/wasm-c-api + mv -v ${XBPS_BUILDDIR}/WASI-*/* ${wrksrc}/crates/wasi-common/WASI + + rm -rv ${XBPS_BUILDDIR}/wasm-c-api-* + rm -rv ${XBPS_BUILDDIR}/WASI-* +}