diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-31 20:50:34 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-03 00:33:48 +0200 |
commit | 8d0158e08f0eb769c2208d23e46673f7cb705189 (patch) | |
tree | 20f79571a571c6681aae3ff175182bac412823b6 /testing/emscripten/APKBUILD | |
parent | 14286b372051d27be543244666881f79198c0cbf (diff) | |
download | aports-8d0158e08f0eb769c2208d23e46673f7cb705189.tar.bz2 aports-8d0158e08f0eb769c2208d23e46673f7cb705189.tar.xz |
testing/emscripten: fix multiple issues
Diffstat (limited to 'testing/emscripten/APKBUILD')
-rw-r--r-- | testing/emscripten/APKBUILD | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/testing/emscripten/APKBUILD b/testing/emscripten/APKBUILD index 60b80333a4..37dba987f1 100644 --- a/testing/emscripten/APKBUILD +++ b/testing/emscripten/APKBUILD @@ -6,7 +6,7 @@ pkgname=emscripten # Keep with sync with pkg emscrypten-fastcomp! pkgver=1.37.9 -pkgrel=0 +pkgrel=1 pkgdesc="An LLVM-to-JavaScript Compiler" url="https://kripken.github.io/emscripten-site/" arch="all" @@ -20,9 +20,24 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/kripken/$pkgname/archive/$pk settings_template-paths.patch add-system-level-config.patch move-emcc-txt.patch + binaryen-wasm-js-path.patch + embuilder-fix-task-all-for-wasm.patch + embuilder-omit-provided.patch emscripten.cfg" builddir="$srcdir/$pkgname-$pkgver" +prepare() { + default_prepare + + cd "$builddir" + + # This file is read from emcc.py for --help. + cp site/build/text/docs/tools_reference/emcc.txt . + + sed "s|/usr/share/emscripten|$builddir|" \ + "$srcdir"/emscripten.cfg > "$srcdir"/.emscripten +} + build() { cd "$builddir"/tools/optimizer @@ -39,12 +54,11 @@ build() { check() { cd "$builddir" - sed "s|/usr/share/emscripten|$builddir|" "$srcdir"/emscripten.cfg \ - > tests/.emscripten - - ./emcc --em-config tests/.emscripten \ + rm -f tests/hello_world.js + ./emcc --em-config "$srcdir"/.emscripten \ --cache "$srcdir"/.cache \ -o tests/hello_world.js tests/hello_world.c + node tests/hello_world.js } @@ -57,10 +71,8 @@ package() { cd "$destdir" - # This is read from emcc.py for --help. - cp site/build/text/docs/tools_reference/emcc.txt . - find . -name "*.bat" -delete + find . -name "*.pyc" -delete # these contain wrong absolute path rm -r docs # there are only few PDFs and TeX sources rm -r media # media for website rm -r site # a website (?) @@ -68,7 +80,7 @@ package() { rm -r third_party # bundled stuff rm -r tools/optimizer # we've already built it rm AUTHORS LICENSE *.md *.markdown package.json - rm system/lib/build_cxx_natively.sh + rm system/lib/build_cxx_natively.sh tools/update_libc_symbols.sh # garbage mkdir -p "$pkgdir"/usr/bin for name in em++ em-config emar embuilder.py emcc emcmake \ @@ -90,7 +102,10 @@ optimizer() { sha512sums="0efd9035d3dce0726025b5b8e30129885eef30f915c502b8957150e4ffc11fd0e9a2b605854cdf69ca3eb05e5102bf34341b7edd2116f5fa29fd170a28e7f07f emscripten-1.37.9.tar.gz a61e172ced6b72adb53a840255a9753905a0c7a1c9f8965345781b9cdcc8a596c4dc88f036e91bd5c05d8b3eb2908bbb7d991c4e1abcf35a46be67b9765e546a fix-python-shebang.patch -ec0dc4a5c562fb85d861c37f5b3168351921dfd7865754ff117f757f15c45ec4474c56b71cd6f50beed71d91a270f3c7ad9d27db205be8eb6637b72b0c9fca8a settings_template-paths.patch +f190ea32dcd4af2661f455ffd8773cb0f7b30ba4a96d22609e11af7186ed1a5c230f3c379d717f23213e87143bb5601acc4d75799631854d0312ff308cbcc14b settings_template-paths.patch 10a7a545f468a5f71fdf1cca0e0be983db5d21387202b851bd11f811c2a0a74f4e4c8733ae9ff933df4ea49c3f5e8e4e16fc3651bc98bb8c37a0828bb29eca7e add-system-level-config.patch 6613ef4cf41bcf0ecc13a0415cdc847f4ec112f07dd19573000ea6a9a6f2360aee6b2db01f822d117d5022dc58b2421be89fe3421c46fd6857737d07ce489c1e move-emcc-txt.patch -e485c974c465fc60ff0c81ba0a7e2c68bd2f653fff6861007d4ce29dd20c7163ba63ac1a3c449b870a8fa4642ad3ef1c8d1e6380add2db58f65553b58f626c9e emscripten.cfg" +a2a2c9b56e8d655b06fdbac2e297e07a0bbcdc3e3df7c913b5caac8ddf20f66b91ed77ac46275adcf8e92baedb5a50cb554c8f3fa59823e17006e17d8d11e820 binaryen-wasm-js-path.patch +53bb9b64222dd445e8aefbb5a4b87bc6d562ea578a6f7a04c2605703f0235633583144fe478031e650a7346ba89f6e0aaf6c435aedb8398131fa02940356bc17 embuilder-fix-task-all-for-wasm.patch +3d2fb817ea3e1dd661900df1e27bd135f39076723494b7ffbbe9e1561ae0a0e62a4ed0058301cf3e6b9a13f75adafe58dc902d4a32ade2cb16754a7fd5e542af embuilder-omit-provided.patch +579140e22c086129190026f8d2bcb4ac9bc5783f056c6a9704a74613b17483817ab9cc869c263630cd5b83a347c9d5d26cb67ef74720dbaafe709eb21aa52851 emscripten.cfg" |