summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 09257e4f05dec87d28f0a5f2a5300e37101a27fc (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=wasmer-git
pkgver=0.16.2.r84.g704c34283
pkgrel=2
pkgdesc="Standalone JIT WebAssembly runtime"
arch=('i686' 'x86_64')
url="https://wasmer.io/"
license=('MIT')
depends=('gcc-libs')
makedepends=('git' 'rust' 'cmake' 'python')
provides=('wasmer')
conflicts=('wasmer')
source=("git+https://github.com/wasmerio/wasmer.git")
sha256sums=('SKIP')


prepare() {
  cd "wasmer"

  git submodule update --init --recursive
}

pkgver() {
  cd "wasmer"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

check() {
  cd "wasmer"

  #cargo test \
  #  --locked \
  #  --release
}

package() {
  cd "wasmer"

  cargo install \
    --no-track \
    --locked \
    --root "$pkgdir/usr" \
    --path "$srcdir/wasmer"
  install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/wasmer"
}