[arch-commits] Commit in (5 files)

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


    Date: Wednesday, June 19, 2019 @ 05:13:27
  Author: svenstaro
Revision: 482304

Move binaryen from AUR

Added:
  binaryen/
  binaryen/repos/
  binaryen/trunk/
  binaryen/trunk/PKGBUILD
  binaryen/trunk/binaryen.sh

-------------+
 PKGBUILD    |   38 ++++++++++++++++++++++++++++++++++++++
 binaryen.sh |    3 +++
 2 files changed, 41 insertions(+)

Added: binaryen/trunk/PKGBUILD
===================================================================
--- binaryen/trunk/PKGBUILD	                        (rev 0)
+++ binaryen/trunk/PKGBUILD	2019-06-19 05:13:27 UTC (rev 482304)
@@ -0,0 +1,38 @@
+# Maintainer: 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')
+url="https://github.com/WebAssembly/binaryen"
+license=('MIT')
+depends=()
+makedepends=('emscripten' 'cmake')
+source=("https://github.com/WebAssembly/binaryen/archive/version_${pkgver}.tar.gz"
+        "binaryen.sh")
+sha384sums=('450fe29c997273f7218ea72e3c8348509e8f16e69f6c0f3cc99e58c9d7591c9850b76af7bf1080aba6d1ff93c7e930d9'
+            '8466c1191c0e90b6cd40093ed4d1576a2f2a7f011e3e83113ebdba0f59f131ac77b5517d751fd6faa0b936113d3645d5')
+
+prepare() {
+    cd binaryen-version_${pkgver}
+}
+
+build() {
+    cd binaryen-version_${pkgver}
+    rm -rf build
+    mkdir build
+    cd build
+    cmake -DCMAKE_INSTALL_PREFIX=/usr ..
+    make
+}
+
+package() {
+    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
+}

Added: binaryen/trunk/binaryen.sh
===================================================================
--- binaryen/trunk/binaryen.sh	                        (rev 0)
+++ binaryen/trunk/binaryen.sh	2019-06-19 05:13:27 UTC (rev 482304)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+export BINARYEN="/usr"


More information about the arch-commits mailing list