void-packages/srcpkgs/wabt/template

34 lines
1.3 KiB
Bash

# 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 <ifreund@ifreund.xyz>"
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
}