summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2638a2763156574e16d4a7ee25c6b6a5cdd4e153 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Hoàng Văn Khải <hvksmr1996@gmail.com>

pkgname=wasmtime-bin
pkgver=0.26.0
pkgrel=1
pkgdesc='Standalone JIT-style runtime for WebAssembly, using Cranelift'
provides=('wasmtime' 'wasm2obj')
conflicts=('wasmtime')
arch=('x86_64')
url="https://wasmtime.dev/"
license=('Apache')
_repo='https://github.com/bytecodealliance/wasmtime'
_download="$_repo/releases/download/v$pkgver"
source=(
  "${_download}/wasmtime-v${pkgver}-${arch}-linux.tar.xz"
)
sha512sums=(
  'SKIP'
)

package() {
  cd "$srcdir/wasmtime-v${pkgver}-x86_64-linux"
  install -Dm755 wasmtime "$pkgdir/usr/bin/wasmtime"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}