Skip to content
Snippets Groups Projects
Commit 5b76bc1f authored by Patrycja Rosa's avatar Patrycja Rosa :cat: Committed by Patrycja Rosa
Browse files

testing/wasmtime: build C headers properly

parent a4ffc04f
No related branches found
No related tags found
1 merge request!68906testing/wasmtime: build C headers properly
Pipeline #246567 canceled
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me> # Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=wasmtime pkgname=wasmtime
pkgver=22.0.0 pkgver=22.0.0
pkgrel=0 pkgrel=1
pkgdesc="Fast and secure runtime for WebAssembly" pkgdesc="Fast and secure runtime for WebAssembly"
url="https://wasmtime.dev/" url="https://wasmtime.dev/"
# others unsupported # others unsupported
...@@ -13,10 +13,12 @@ makedepends=" ...@@ -13,10 +13,12 @@ makedepends="
cargo cargo
cargo-auditable cargo-auditable
chrpath chrpath
cmake
rust-wasm rust-wasm
samurai
zstd-dev zstd-dev
" "
subpackages="libwasmtime $pkgname-dev" subpackages="libwasmtime-static libwasmtime $pkgname-dev"
source="https://github.com/bytecodealliance/wasmtime/releases/download/v$pkgver/wasmtime-v$pkgver-src.tar.gz source="https://github.com/bytecodealliance/wasmtime/releases/download/v$pkgver/wasmtime-v$pkgver-src.tar.gz
system-zstd.patch system-zstd.patch
" "
...@@ -50,6 +52,9 @@ prepare() { ...@@ -50,6 +52,9 @@ prepare() {
build() { build() {
cargo auditable build --frozen --release cargo auditable build --frozen --release
cargo auditable build --frozen --release -p wasmtime-c-api cargo auditable build --frozen --release -p wasmtime-c-api
cmake -G Ninja -B build-capi -S crates/c-api \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build-capi
} }
check() { check() {
...@@ -61,7 +66,7 @@ package() { ...@@ -61,7 +66,7 @@ package() {
# remove gigantic useless rpath to /usr/lib # remove gigantic useless rpath to /usr/lib
chrpath -d target/release/libwasmtime.so chrpath -d target/release/libwasmtime.so
install -Dm644 target/release/libwasmtime.so -t "$pkgdir"/usr/lib/ install -Dm644 target/release/libwasmtime.so -t "$pkgdir"/usr/lib/
cp -a crates/c-api/include "$pkgdir"/usr/ DESTDIR="$pkgdir" cmake --install build-capi
} }
libwasmtime() { libwasmtime() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment