[arch-commits] Commit in (wabt wabt/repos wabt/trunk wabt/trunk/PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Sat Dec 15 14:28:09 UTC 2018


    Date: Saturday, December 15, 2018 @ 14:28:08
  Author: jelle
Revision: 416370

wabt: initial commmit

New optdep of diffoscope

Added:
  wabt/
  wabt/repos/
  wabt/trunk/
  wabt/trunk/PKGBUILD

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Added: wabt/trunk/PKGBUILD
===================================================================
--- wabt/trunk/PKGBUILD	                        (rev 0)
+++ wabt/trunk/PKGBUILD	2018-12-15 14:28:08 UTC (rev 416370)
@@ -0,0 +1,52 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributor:  Konstantin Gorodinskii <mail at konstantin.io>
+
+pkgname="wabt"
+pkgdesc="The WebAssembly Binary Toolkit is a suite of tools for WebAssembly"
+url="https://github.com/WebAssembly/wabt"
+pkgver=1.0.6
+pkgrel=1
+arch=('x86_64')
+license=('APACHE')
+depends=()
+makedepends=('cmake' 'git' 'gcc' 'clang' 'python-ply' 'gtest')
+source=("git+https://github.com/WebAssembly/wabt#commit=795d1292377b7e5de8dabeefaa11edfaf6bd97af"
+        "git+https://github.com/WebAssembly/testsuite"
+        "git+https://github.com/google/googletest"
+        "git+https://github.com/dabeaz/ply")
+md5sums=('SKIP'
+         'SKIP'
+         'SKIP'
+         'SKIP')
+
+prepare() {
+  cd ${pkgname}
+
+  git submodule init
+  git config submodule."external/testsuite".url "${srcdir}/testsuite"
+  git config submodule."external/googletest".url "${srcdir}/googletest"
+  git config submodule."external/ply".url "${srcdir}/ply"
+  git submodule update --recursive
+
+  mkdir build
+}
+
+build() {
+  cd ${pkgname}/build
+  cmake \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    ..
+
+  make
+}
+
+check() {
+  cd ${pkgname}
+  #make test
+}
+
+package() {
+  cd ${pkgname}/build
+  make DESTDIR="${pkgdir}" install
+}



More information about the arch-commits mailing list