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

build() {
	# https://github.com/WebAssembly/wabt/issues/1315
	rmdir third_party/wasm-c-api
	ln -s ../../wasm-c-api-$_wasm_c_api_commit third_party/wasm-c-api

	mkdir -p build
	cd build
	cmake -DCMAKE_INSTALL_PREFIX=/usr \
	      -DCMAKE_BUILD_TYPE=None \
	      -DBUILD_TESTS=OFF \
	      ..
	make
}

package() {
	cd build
	make DESTDIR="$pkgdir" install
}
sha512sums="b051e7254877ccef131d6f8b26ab5587ac9c72e0cafb60e160889c7e8731f35dbb2a3488fd57f878c68006695d635eccc186738a23a6bc9747993daf3e17a6d7  wabt-1.0.13.tar.gz
b6ee7d2d83a3ca7b3cb3ee110282f7d32eada1d9020cadd3fdec58f40478879fd9ac9fada526021d8f6e8a26e1df7353df313d4149be2ffe4aea3a28f856fd89  wasm-c-api-d9a80099d496b5cdba6f3fe8fc77586e0e505ddc.tar.gz"