Package Details: binaryen-git 119.r60.g0be8d5e07-1

Git Clone URL: https://aur.archlinux.org/binaryen-git.git (read-only, click to copy)
Package Base: binaryen-git
Description: Compiler infrastructure and toolchain library for WebAssembly
Upstream URL: https://github.com/WebAssembly/binaryen
Licenses: Apache-2.0
Conflicts: binaryen
Provides: binaryen
Submitter: svenstaro
Maintainer: Chocobo1
Last Packager: Chocobo1
Votes: 3
Popularity: 0.000000
First Submitted: 2015-12-19 03:14 (UTC)
Last Updated: 2024-10-05 05:03 (UTC)

Dependencies (3)

Required by (11)

Sources (2)

Latest Comments

Chocobo1 commented on 2024-10-05 05:04 (UTC)

Had to do this patch to get it running:

Thanks, fixed.

Pol_M commented on 2024-10-05 00:25 (UTC) (edited on 2024-10-05 00:26 (UTC) by Pol_M)

Had to do this patch to get it running:

diff --git a/PKGBUILD b/PKGBUILD
index c77f096..ad3d692 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
 # Former maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>

 pkgname=binaryen-git
-pkgver=113.r9.g97178d08d
+pkgver=119.r60.g0be8d5e07
 pkgrel=1
 pkgdesc="Compiler infrastructure and toolchain library for WebAssembly"
 arch=('i686' 'x86_64')
@@ -14,11 +14,14 @@ makedepends=('git' 'cmake')
 provides=("binaryen=$pkgver")
 conflicts=('binaryen')
 source=("git+https://github.com/WebAssembly/binaryen.git"
+        "git+https://github.com/google/googletest.git"
+        "git+https://github.com/WebAssembly/testsuite.git"
         "binaryen.sh::https://gitlab.archlinux.org/archlinux/packaging/packages/binaryen/-/raw/main/binaryen.sh")
 sha256sums=('SKIP'
+            'SKIP'
+            'SKIP'
             'SKIP')

-
 pkgver() {
   cd "binaryen"

@@ -28,6 +31,14 @@ pkgver() {
   printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^version_//'
 }

+prepare() {
+  cd binaryen
+  git submodule init
+  git config submodule.third_party/googletest.url "$srcdir/googletest"
+  git config submodule.test/spec/testsuite.url "$srcdir/testsuite"
+  git -c protocol.file.allow=always submodule update
+}
+
 build() {
   cd "binaryen"

@@ -36,6 +47,7 @@ build() {
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_INSTALL_PREFIX="/usr" \
     -DCMAKE_INSTALL_LIBDIR="lib" \
+    -DENABLE_WERROR=OFF \
     ./
   make -C "_build"
 }

CyrIng commented on 2020-01-14 11:10 (UTC)

Thank you; this package is solving the '--inline-main' issue of emcc (emscripten)

svenstaro commented on 2016-04-10 08:04 (UTC)

Could you make a patch with your suggested changes? I will accept it ASAP.

jpambrun commented on 2016-04-10 00:36 (UTC)

Some required files such as bin/wasm.js are not being installed. Furthermore, maybe the install dir should be '/usr/lib/binaryen/' to match emscripten and not pollute /usr/bin with the aforementioned required .js files.