blob: ffc6180af27946fdebfcdb293a53eb9539922db3 (
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
48
49
50
51
52
53
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=binaryen
pkgver=1.37.12
pkgrel=0
pkgdesc="Compiler infrastructure and toolchain library for WebAssembly, in C++"
url="https://github.com/WebAssembly/binaryen"
arch="all !s390x"
license="ASL-2.0"
makedepends="cmake"
checkdepends="nodejs python2"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/WebAssembly/$pkgname/archive/$pkgver.tar.gz
link-dynamically.patch
dont-enforce-sse.patch"
builddir="$srcdir/$pkgname-$pkgver"
case "$CARCH" in
x86) options="!check";; # XXX: two tests fail
esac
build() {
cd "$builddir"
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DBUILD_SHARED_LIBS=ON
make
}
check() {
cd "$builddir"
# waterfall requires additional dependency
# gcc-tests fail, dunno why
python2 check.py --no-test-waterfall --no-run-gcc-tests
}
package() {
cd "$builddir"
make install DESTDIR="$pkgdir"
rm "$pkgdir"/usr/share/binaryen/binaryen.js
}
sha512sums="4a54d33e04e31b0ab696dbc0a617662ce059da3a98eaf2143869a76b7da35cb1951c7c024e47f986528bcca8c0b3a3f4b04011160b23915e91b3602d00427d69 binaryen-1.37.12.tar.gz
4c69c4fe55690694143163576036b935072b7b0eac30e17921115b3ddeb58266a91cf7b6ff39396cede9059dac4fa2f9de691f6fd83cddca88abbbcc93d3c4fd link-dynamically.patch
747dcebb46db3480f877f004c8a5efee297cedda7f826b1a85ba4a0cddc357c480a668efd5bfdf58f716d15756c7634fa73cc1a84c7a66edb43178f0e746537e dont-enforce-sse.patch"
|