mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-01 14:02:24 +01:00
47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=binaryen
|
|
pkgver=98
|
|
pkgrel=0
|
|
pkgdesc="Compiler infrastructure and toolchain library for WebAssembly, in C++"
|
|
url="https://github.com/WebAssembly/binaryen"
|
|
arch="all !s390x !mips !mips64"
|
|
license="Apache-2.0"
|
|
makedepends="cmake python3"
|
|
checkdepends="nodejs"
|
|
subpackages="$pkgname-dev"
|
|
source="https://github.com/WebAssembly/binaryen/archive/version_$pkgver/binaryen-$pkgver.tar.gz"
|
|
builddir="$srcdir/$pkgname-version_$pkgver"
|
|
|
|
case "$CARCH" in
|
|
x86) options="!check";; # XXX: two tests fail
|
|
esac
|
|
|
|
build() {
|
|
cmake \
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
-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() {
|
|
# Tests are extremely chatty.
|
|
msg 'running tests with stdout/stderr redirected into ./check.log...'
|
|
python3 check.py > check.log 2>&1 || {
|
|
echo 'tests failed, printing last 100 lines of check.log:' >&2
|
|
tail -n 100 check.log
|
|
return 1
|
|
}
|
|
}
|
|
|
|
package() {
|
|
make install DESTDIR="$pkgdir"
|
|
}
|
|
|
|
sha512sums="b5678cd12a125f9a57add6ce3c220cd79226bbc71b8abb71951ef2095376549da8ba362cdf99e4d1a01211db91b63c1f5314fd5df68d56bfd36315e21368f8c0 binaryen-98.tar.gz"
|