[arch-commits] Commit in wasi-libc/repos (community-any community-any/PKGBUILD)
Frederik Schwan
freswa at gemini.archlinux.org
Sat Nov 6 00:43:30 UTC 2021
Date: Saturday, November 6, 2021 @ 00:43:30
Author: freswa
Revision: 1037377
archrelease: copy trunk to community-any
Added:
wasi-libc/repos/community-any/
wasi-libc/repos/community-any/PKGBUILD
(from rev 1037376, wasi-libc/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: wasi-libc/repos/community-any/PKGBUILD (from rev 1037376, wasi-libc/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2021-11-06 00:43:30 UTC (rev 1037377)
@@ -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