33 lines
1.3 KiB
Bash
33 lines
1.3 KiB
Bash
# Template file for 'wabt'
|
|
pkgname=wabt
|
|
version=1.0.20
|
|
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=18f83401a47a0e43772cf7d9f216e994bf7c7fa6
|
|
_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="39def40e8719030e0d11b1abbd81427fb1731c0372fcb24e2baaea067acba66f
|
|
acc72b0cde04828fd4640576fdbd0727fc202f08b7701ae0bb318e2510f44b22
|
|
9d82be5b4dcfaadb9c0b0455c0c8b2989b942f75b9f698fa8e70329e403f4f74
|
|
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
|
|
}
|