1 # Maintainer: Frederik Schwan <freswa at archlinux dot org>
5 _commit=1dfe5c302d1c5ab621f7abf04620fae92700fd22 # main
8 pkgdesc='WASI libc implementation for WebAssembly'
10 url='https://github.com/WebAssembly/wasi-libc'
11 license=('Apache' 'MIT')
12 makedepends=('git' 'llvm' 'clang')
13 source=("git+https://github.com/WebAssembly/wasi-libc.git#commit=${_commit}")
15 options=('staticlibs')
19 printf "0+%s+%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
24 WASM_CC=/usr/bin/clang
25 WASM_AR=/usr/bin/llvm-ar
26 WASM_NM=/usr/bin/llvm-nm
28 # Remove bulk memory support
29 # https://bugzilla.mozilla.org/show_bug.cgi?id=1773200#c4
34 make "${make_options[@]}"
39 install -dm755 "${pkgdir}"/usr/share
40 cp -dr --preserve=mode,timestamp sysroot "${pkgdir}"/usr/share/wasi-sysroot