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

Sven-Hendrik Haase svenstaro at archlinux.org
Fri Jun 21 08:18:17 UTC 2019


    Date: Friday, June 21, 2019 @ 08:18:17
  Author: svenstaro
Revision: 482585

Better comments

Modified:
  emscripten/trunk/PKGBUILD

----------+
 PKGBUILD |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-06-21 07:40:39 UTC (rev 482584)
+++ PKGBUILD	2019-06-21 08:18:17 UTC (rev 482585)
@@ -35,6 +35,7 @@
 build() {
   cd "$srcdir"/llvm-project/llvm/build
 
+  # Inspired from https://github.com/WebAssembly/waterfall/blob/58e343a47ea02cb6daf19eefbdf626b23c24980c/src/build.py#L790
   cmake .. \
     -GNinja \
     -DPYTHON_EXECUTABLE=/usr/bin/python \
@@ -52,18 +53,17 @@
 }
 
 package() {
-  # install LLVM stuff
-  # I think we really only need these binaries.
+  # Install LLVM stuff according to https://github.com/emscripten-core/emscripten/blob/incoming/docs/process.md
   for bin in clang clang++ wasm-ld llvm-nm llvm-ar llvm-as llvm-dis llvm-dwarfdump; do
       install -Dm755 "$srcdir"/llvm-project/llvm/build/bin/$bin "$pkgdir"/usr/lib/emscripten-llvm/$bin
   done
 
-  # install emscripten
+  # Install emscripten
   cd "$srcdir"/emscripten-$pkgver
   install -d "$pkgdir"/usr/lib/emscripten
   cp -rup em* cmake site src system third_party tools "$pkgdir"/usr/lib/emscripten
 
-  # remove clutter
+  # Remove clutter
   rm "$pkgdir"/usr/lib/emscripten/*.bat
 
   install -d "$pkgdir"/usr/share/doc



More information about the arch-commits mailing list