mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2024-11-10 07:11:39 +00:00
Don't try to install the emscripten SDK.
We already assume the user has a working compiler, so making the setup of emscripten itself the user's responsibility makes sense. Plus there are multiple ways it can be set up; Debian has a package for example. This changes the emscripten pkgdef to just install wrapper scripts and ditch the code to set up the SDK.
This commit is contained in:
parent
a314c83753
commit
174ece5b36
1 changed files with 9 additions and 3 deletions
|
@ -1,9 +1,13 @@
|
|||
description "Emscripten build environment"
|
||||
fetch_git https://github.com/juj/emsdk.git main
|
||||
|
||||
do_fetch() {
|
||||
check_tool emcc
|
||||
mkdir -p "$PACKAGE_BUILD_DIR"
|
||||
echo "This is just a dummy directory" > "$PACKAGE_BUILD_DIR/README"
|
||||
}
|
||||
|
||||
do_build() {
|
||||
./emsdk install latest
|
||||
./emsdk activate latest
|
||||
true
|
||||
}
|
||||
|
||||
make_wrapper_script() {
|
||||
|
@ -31,6 +35,8 @@ do_install() {
|
|||
make_wrapper_script ld emcc
|
||||
make_wrapper_script nm emnm
|
||||
make_wrapper_script ranlib emranlib
|
||||
|
||||
echo "Wrapper scripts installed."
|
||||
}
|
||||
|
||||
check_tool wasm32-unknown-emscripten-gcc
|
||||
|
|
Loading…
Reference in a new issue