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 @@
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=wasmtime
pkgver=22.0.0
pkgrel=0
pkgrel=1
pkgdesc="Fast and secure runtime for WebAssembly"
url="https://wasmtime.dev/"
# others unsupported
......@@ -13,10 +13,12 @@ makedepends="
cargo
cargo-auditable
chrpath
cmake
rust-wasm
samurai
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
system-zstd.patch
"
......@@ -50,6 +52,9 @@ prepare() {
build() {
cargo auditable build --frozen --release
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() {
......@@ -61,7 +66,7 @@ package() {
# remove gigantic useless rpath to /usr/lib
chrpath -d target/release/libwasmtime.so
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() {
......
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