Jan Alexander Steffens (heftig) pushed to branch main at Arch Linux / Packaging / Packages / wasi-libc
Commits: 84bb69cc by Jan Alexander Steffens (heftig) at 2024-07-04T06:53:51+02:00 1:0+374+9e8c5423-2: add more targets - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,15 +1,14 @@ pkgbase = wasi-libc pkgdesc = WASI libc implementation for WebAssembly pkgver = 0+374+9e8c5423 - pkgrel = 1 + pkgrel = 2 epoch = 1 url = https://github.com/WebAssembly/wasi-libc arch = any - license = Apache - license = MIT + license = Apache-2.0 WITH LLVM-exception AND Apache-2.0 AND MIT + makedepends = clang makedepends = git makedepends = llvm - makedepends = clang options = staticlibs source = git+https://github.com/WebAssembly/wasi-libc.git#commit=9e8c542319242a5e536e14e6046de5968d298038 b2sums = b38704e419dba9be28004d2615800082832769874573d8d9534e4c0386cf9a93214872bda7ce2d3793ec7a5a16bd444adef0b221cfbe60e38216b53b1cf02346 ===================================== PKGBUILD ===================================== @@ -2,17 +2,21 @@ pkgname=wasi-libc pkgver=0+374+9e8c5423 -_commit=9e8c542319242a5e536e14e6046de5968d298038 # main -pkgrel=1 +_commit=9e8c542319242a5e536e14e6046de5968d298038 # tags/wasi-sdk-22 +pkgrel=2 epoch=1 pkgdesc='WASI libc implementation for WebAssembly' -arch=('any') url='https://github.com/WebAssembly/wasi-libc' -license=('Apache' 'MIT') -makedepends=('git' 'llvm' 'clang') +arch=('any') +license=('Apache-2.0 WITH LLVM-exception AND Apache-2.0 AND MIT') +makedepends=( + 'clang' + 'git' + 'llvm' +) +options=('staticlibs') source=("git+https://github.com/WebAssembly/wasi-libc.git#commit=${_commit}") b2sums=('b38704e419dba9be28004d2615800082832769874573d8d9534e4c0386cf9a93214872bda7ce2d3793ec7a5a16bd444adef0b221cfbe60e38216b53b1cf02346') -options=('staticlibs') pkgver() { cd ${pkgname} @@ -20,22 +24,30 @@ pkgver() { } build() { - local make_options=( + local target= make_options=( WASM_CC=/usr/bin/clang WASM_AR=/usr/bin/llvm-ar WASM_NM=/usr/bin/llvm-nm - - # Remove bulk memory support - # https://bugzilla.mozilla.org/show_bug.cgi?id=1773200#c4 - BULK_MEMORY_SOURCES= + ) + local -A targets=( + wasm32-wasi '' + wasm32-wasip1 '' + wasm32-wasip1-threads 'THREAD_MODEL=posix' + wasm32-wasip2 'WASI_SNAPSHOT=p2' ) cd ${pkgname} - make "${make_options[@]}" + + for target in "${!targets[@]}"; do + make "${make_options[@]}" TARGET_TRIPLE="$target" ${targets[$target]} + done } package() { cd ${pkgname} install -dm755 "${pkgdir}"/usr/share cp -dr --preserve=mode,timestamp sysroot "${pkgdir}"/usr/share/wasi-sysroot + install -Dm644 LICENSE* -t "${pkgdir}"/usr/share/licenses/${pkgname} } + +# vim:set sw=2 sts=-1 et: View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/wasi-libc/-/commit/84bb69cc9be79c59f8f498c997b58f4a7f4b6720 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/wasi-libc/-/commit/84bb69cc9be79c59f8f498c997b58f4a7f4b6720 You're receiving this email because of your account on gitlab.archlinux.org.