summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2d6e02208e67bf8dc479b8fd83e77ed230d74872 (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
# Maintainer: crave <crave@infinity>
# Generated by opam2aur https://gitlab.com/malet/opam2aur

pkgname=ocaml-wasm
_oname=wasm
pkgver=1.0
pkgrel=1
pkgdesc="An OCaml library to read and write Web Assembly (wasm) files and manipulate their AST."
arch=('i686' 'x86_64')
url=''
license=('Apache-2.0')
options=('!strip' '!makeflags' 'staticlibs')
source=('https://github.com/WebAssembly/spec/archive/v1.0.zip')
depends=('ocaml')
makedepends=('ocaml-findlib' 'ocamlbuild')
md5sums=('82d4cc7c67ae32a6785268a1cdddd973')

build() {
  cd "$srcdir/"*/
  make -C interpreter opt unopt
}

package() {
  cd "$srcdir/"*/
  export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)"
  install -dm 755 "$OCAMLFIND_DESTDIR"
  make -C interpreter install
}