36 lines
1.4 KiB
Bash
36 lines
1.4 KiB
Bash
# Template file for 'wabt'
|
|
pkgname=wabt
|
|
version=1.0.23
|
|
revision=1
|
|
create_wrksrc=yes
|
|
build_style=cmake
|
|
make_check_target=check
|
|
checkdepends="python3-ply"
|
|
short_desc="WebAssembly Binary Toolkit"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/WebAssembly/wabt"
|
|
_gtest_commit=703bd9caab50b139428cea1aaff9974ebee5742e
|
|
_testsuite_commit=9994915e0cca8b42a16c577e4c85491822367dde
|
|
_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="925f47020705cd2cc00a4ff6a36ab08f8adf6d08c7eac5057db0db38b6b2f16d
|
|
d17b1b83a57b3933565a6d0616fe261107326d47de20288d0949ed038e1c342d
|
|
baf8a7f68ddd21fb7ad255acc765391c972c12f3857af8e9a979342b160e6a5a
|
|
aea8cd095e9937f1e14f2c93e026317b197eb2345e7a817fe3932062eb7b792c"
|
|
|
|
post_extract() {
|
|
mv wabt-${version}/* .
|
|
# 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
|
|
}
|