[arch-commits] Commit in (4 files)

Frederik Schwan freswa at gemini.archlinux.org
Sat Nov 6 00:42:37 UTC 2021


    Date: Saturday, November 6, 2021 @ 00:42:37
  Author: freswa
Revision: 1037376

add wasi-libc

Added:
  wasi-libc/
  wasi-libc/repos/
  wasi-libc/trunk/
  wasi-libc/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Added: wasi-libc/trunk/PKGBUILD
===================================================================
--- wasi-libc/trunk/PKGBUILD	                        (rev 0)
+++ wasi-libc/trunk/PKGBUILD	2021-11-06 00:42:37 UTC (rev 1037376)
@@ -0,0 +1,33 @@
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+
+pkgname=wasi-libc
+pkgver=0+222+ad51334
+_commit=ad5133410f66b93a2381db5b542aad5e0964db96
+pkgrel=1
+pkgdesc='WASI libc implementation for WebAssembly'
+arch=('any')
+url='https://github.com/WebAssembly/wasi-libc'
+license=('Apache' 'MIT')
+makedepends=('git' 'llvm' 'clang')
+source=("git+https://github.com/WebAssembly/wasi-libc.git#commit=${_commit}")
+b2sums=('SKIP')
+options=('staticlibs')
+
+pkgver() {
+  cd ${pkgname}
+  printf "0+%s+%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+  cd ${pkgname}
+  make \
+    WASM_CC=/usr/bin/clang \
+    WASM_AR=/usr/bin/llvm-ar \
+    WASM_NM=/usr/bin/llvm-nm
+}
+
+package() {
+  cd ${pkgname}
+  install -dm755 "${pkgdir}"/usr/share
+  cp -dr --preserve=mode,timestamp sysroot "${pkgdir}"/usr/share/wasi-sysroot
+}



More information about the arch-commits mailing list