Date: Saturday, December 15, 2018 @ 14:38:32
  Author: jelle
Revision: 416371

archrelease: copy trunk to community-x86_64

Added:
  wabt/repos/community-x86_64/
  wabt/repos/community-x86_64/PKGBUILD
    (from rev 416370, wabt/trunk/PKGBUILD)

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

Copied: wabt/repos/community-x86_64/PKGBUILD (from rev 416370, 
wabt/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2018-12-15 14:38:32 UTC (rev 416371)
@@ -0,0 +1,52 @@
+# Maintainer: Jelle van der Waa <je...@archlinux.org>
+# Contributor:  Konstantin Gorodinskii <m...@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
+}

Reply via email to