[arch-commits] Commit in (4 files)

Frederik Schwan freswa at gemini.archlinux.org
Tue Nov 9 13:30:33 UTC 2021


    Date: Tuesday, November 9, 2021 @ 13:30:33
  Author: freswa
Revision: 1039329

add wasmtime

Added:
  wasmtime/
  wasmtime/repos/
  wasmtime/trunk/
  wasmtime/trunk/PKGBUILD

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

Added: wasmtime/trunk/PKGBUILD
===================================================================
--- wasmtime/trunk/PKGBUILD	                        (rev 0)
+++ wasmtime/trunk/PKGBUILD	2021-11-09 13:30:33 UTC (rev 1039329)
@@ -0,0 +1,47 @@
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+# Contributor: Dario Ostuni <dario.ostuni at gmail.com>
+
+pkgname=wasmtime
+pkgver=0.31.0
+pkgrel=1
+pkgdesc='Standalone JIT-style runtime for WebAssembly, using Cranelift'
+arch=('x86_64')
+url='https://github.com/bytecodealliance/wasmtime'
+license=('Apache')
+depends=('gcc-libs')
+makedepends=('cargo' 'git')
+source=("git+https://github.com/bytecodealliance/wasmtime.git#commit=v${pkgver}"
+        git+https://github.com/WebAssembly/testsuite.git
+        git+https://github.com/WebAssembly/wasm-c-api.git
+        git+https://github.com/WebAssembly/WASI.git
+        git+https://github.com/WebAssembly/wasi-nn.git
+        git+https://github.com/WebAssembly/wasi-crypto.git)
+b2sums=('SKIP'
+        'SKIP'
+        'SKIP'
+        'SKIP'
+        'SKIP'
+        'SKIP')
+
+prepare() {
+  cd ${pkgname}
+  git submodule init
+  git config submodule.spec_testsuite.src "${srcdir}"/testsuite
+  git config submodule.crates/c-api/examples/wasm-c-api.src "${srcdir}"/wasm-c-api
+  git config submodule.WASI.src "${srcdir}"/WASI
+  git config submodule.crates/wasi-nn/spec.src "${srcdir}"/wasi-nn
+  git config submodule.crates/wasi-crypto/spec.src "${srcdir}"/wasi-crypto
+  git submodule update
+}
+
+build() {
+  cd ${pkgname}
+  cargo build --locked --release
+  cargo build --locked --release --manifest-path crates/c-api/Cargo.toml
+}
+
+package() {
+  cd ${pkgname}
+  install -Dm755 target/release/${pkgname} "${pkgdir}"/usr/bin/$pkgname
+  install -Dm755 target/release/lib${pkgname}.so "${pkgdir}"/usr/lib/lib${pkgname}.so
+}



More information about the arch-commits mailing list