From 195c6d594f36c5a78fdbf3bdedb7211128d17d2d Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Wed, 29 Jul 2020 20:44:39 +0200 Subject: [PATCH] New package: wabt-1.0.19 --- srcpkgs/wabt/template | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 srcpkgs/wabt/template diff --git a/srcpkgs/wabt/template b/srcpkgs/wabt/template new file mode 100644 index 00000000000..241f5b7bcfe --- /dev/null +++ b/srcpkgs/wabt/template @@ -0,0 +1,33 @@ +# Template file for 'wabt' +pkgname=wabt +version=1.0.19 +revision=1 +build_style=cmake +make_check_target=check +checkdepends="python3-ply" +short_desc="WebAssembly Binary Toolkit" +maintainer="Isaac Freund " +license="Apache-2.0" +homepage="https://github.com/WebAssembly/wabt" +_gtest_commit=7888184f28509dba839e3683409443e0b5bb8948 +_testsuite_commit=d2163dace09d647bccf34b9b82a6f05a3b23cf29 +_wasm_c_api_commit=d9a80099d496b5cdba6f3fe8fc77586e0e505ddc +distfiles="https://github.com/WebAssembly/wabt/archive/${version}.tar.gz + https://github.com/google/googletest/archive/${_gtest_commit}.tar.gz + https://github.com/WebAssembly/testsuite/archive/${_testsuite_commit}.tar.gz + https://github.com/WebAssembly/wasm-c-api/archive/${_wasm_c_api_commit}.tar.gz" +checksum="134f2afc8205d0a3ab89c5f0d424ff3823e9d2769c39d2235aa37eba7abc15ba + acc72b0cde04828fd4640576fdbd0727fc202f08b7701ae0bb318e2510f44b22 + 1ea206dba1b0826cf52e7a4b9328a341c75e8642072ab5e34356def380ad504d + aea8cd095e9937f1e14f2c93e026317b197eb2345e7a817fe3932062eb7b792c" + +pre_configure() { + # move submodule to proper location + rmdir third_party/gtest + rmdir third_party/testsuite + rmdir third_party/wasm-c-api + + mv -v ../googletest-${_gtest_commit} third_party/gtest + mv -v ../testsuite-${_testsuite_commit} third_party/testsuite + mv -v ../wasm-c-api-${_wasm_c_api_commit} third_party/wasm-c-api +}