aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wabt/APKBUILD
blob: dabcba04f5bc6c7b0fe59389aedf84f02cc3df40 (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
# Contributor: Ian Douglas Scott <ian@iandouglasscott.com>
# Maintainer: Ian Douglas Scott <ian@iandouglasscott.com>
pkgname=wabt
pkgver=1.0.12
pkgrel=0
pkgdesc="WebAssembly binary toolkit"
arch="all"
url="https://github.com/WebAssembly/wabt"
license="Apache-2.0"
makedepends="cmake"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
# Tests require vendored dependencies (as git submodules). Should be modified
# to use copies from repository.
options="!check"

build() {
	mkdir -p build
	cd build
	cmake -DCMAKE_INSTALL_PREFIX=/usr \
	      -DCMAKE_BUILD_TYPE=Release \
	      -DBUILD_TESTS=OFF \
	      ..
	make
}

package() {
	cd build
	make DESTDIR="$pkgdir" install
}
sha512sums="48ab1819efbfe0151d9b1a66c2155fd11d6d3841761a949cc26329a1b51ebcc91ba07e9f18c5fd9df8bef28e7b56e1564b82398bdee19dda730019f74d2a8ec0  wabt-1.0.12.tar.gz"