[arch-commits] Commit in binaryen/trunk (PKGBUILD binaryen.sh)

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Jun 19 06:13:01 UTC 2019


    Date: Wednesday, June 19, 2019 @ 06:13:00
  Author: svenstaro
Revision: 482307

upgpkg: binaryen 84-1

Modified:
  binaryen/trunk/PKGBUILD
  binaryen/trunk/binaryen.sh

-------------+
 PKGBUILD    |   30 ++++++++++++++----------------
 binaryen.sh |    6 ++++++
 2 files changed, 20 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-06-19 06:03:20 UTC (rev 482306)
+++ PKGBUILD	2019-06-19 06:13:00 UTC (rev 482307)
@@ -1,38 +1,36 @@
-# Maintainer: Dario Ostuni <dario.ostuni at gmail.com>
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Dario Ostuni <dario.ostuni at gmail.com>
 
 pkgname=binaryen
 pkgver=84
 pkgrel=1
 pkgdesc="Compiler infrastructure and toolchain library for WebAssembly, in C++"
-arch=('i686' 'x86_64' 'armv7h' 'aarch64')
+arch=('x86_64')
 url="https://github.com/WebAssembly/binaryen"
 license=('MIT')
 depends=()
-makedepends=('emscripten' 'cmake')
+makedepends=(cmake ninja python)
 source=("https://github.com/WebAssembly/binaryen/archive/version_${pkgver}.tar.gz"
         "binaryen.sh")
 sha384sums=('450fe29c997273f7218ea72e3c8348509e8f16e69f6c0f3cc99e58c9d7591c9850b76af7bf1080aba6d1ff93c7e930d9'
-            '8466c1191c0e90b6cd40093ed4d1576a2f2a7f011e3e83113ebdba0f59f131ac77b5517d751fd6faa0b936113d3645d5')
+            'fdf76d46e6ab9b915212bbca7c29e624e209de911b18ecaccc40b99a00360cd12b261f96c8655f02ec4fd28cedffbcac')
 
 prepare() {
-    cd binaryen-version_${pkgver}
+    mkdir binaryen-version_${pkgver}/build
 }
 
 build() {
-    cd binaryen-version_${pkgver}
-    rm -rf build
-    mkdir build
-    cd build
-    cmake -DCMAKE_INSTALL_PREFIX=/usr ..
-    make
+    cd binaryen-version_${pkgver}/build
+
+    cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr ..
+    ninja
 }
 
 package() {
+    cd binaryen-version_${pkgver}/build
+    DESTDIR=${pkgdir} ninja install
+    mv ${pkgdir}/usr/lib64 ${pkgdir}/usr/lib
+
     install -Dm755 $srcdir/binaryen.sh $pkgdir/etc/profile.d/binaryen.sh
-    cd binaryen-version_${pkgver}/build
-    make DESTDIR=${pkgdir} install
     install -Dm644 ../LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
-    if [[ -d "${pkgdir}/usr/lib64" ]]; then
-        mv ${pkgdir}/usr/lib64 ${pkgdir}/usr/lib
-    fi
 }

Modified: binaryen.sh
===================================================================
--- binaryen.sh	2019-06-19 06:03:20 UTC (rev 482306)
+++ binaryen.sh	2019-06-19 06:13:00 UTC (rev 482307)
@@ -1,3 +1,9 @@
 #!/bin/sh
 
+# This one is for emscripten.
 export BINARYEN="/usr"
+
+# This one is for binaryen itself.
+export BINARYEN_ROOT="/usr"
+
+# Just agree on one of these god damnit.


More information about the arch-commits mailing list