mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 13:06:36 +02:00
35 lines
1,003 B
Text
35 lines
1,003 B
Text
# Maintainer: Jason Staten <code.alpine@jxs.me>
|
|
pkgname=wazero
|
|
pkgver=1.9.0
|
|
pkgrel=1
|
|
pkgdesc="WebAssembly Core Specification 1.0 and 2.0 compliant runtime"
|
|
url="https://wazero.io"
|
|
# Tests fail on 32-bit and ppc64le architectures
|
|
arch="x86_64 aarch64"
|
|
license="Apache-2.0"
|
|
makedepends="go"
|
|
options="net" # go modules
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/tetratelabs/wazero/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
build() {
|
|
go build \
|
|
-ldflags "-X github.com/tetratelabs/wazero/internal/version.version=$pkgver" \
|
|
./cmd/wazero
|
|
}
|
|
|
|
check() {
|
|
# gojs/goos -buildmode=pie not supported on js/wasm
|
|
export GOFLAGS="${GOFLAGS/-buildmode=pie}"
|
|
# integration_test/vs/compiler requires real paths for relative read
|
|
export GOFLAGS="${GOFLAGS/-trimpath}"
|
|
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 wazero -t "$pkgdir"/usr/bin
|
|
}
|
|
|
|
sha512sums="
|
|
0b1d327334ada7a238f154b10b77591181db5096d3b9bbff7afb2e3c17e69195abe6341d4346885e5c192b0fcac7b1cdc501851a233d573aac4dfb11ba8fcfb3 wazero-1.9.0.tar.gz
|
|
"
|