[arch-commits] Commit in zapcc/repos/community-x86_64 (PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Sat Jun 30 11:26:31 UTC 2018


    Date: Saturday, June 30, 2018 @ 11:26:31
  Author: arodseth
Revision: 348030

archrelease: copy trunk to community-x86_64

Added:
  zapcc/repos/community-x86_64/PKGBUILD
    (from rev 348029, zapcc/trunk/PKGBUILD)

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

Copied: zapcc/repos/community-x86_64/PKGBUILD (from rev 348029, zapcc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-06-30 11:26:31 UTC (rev 348030)
@@ -0,0 +1,37 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=zapcc
+pkgver=5.0
+pkgrel=1
+pkgdesc='C++ compiler based on Clang, but significantly faster'
+arch=('x86_64')
+license=('custom')
+url='https://zapcc.com/'
+depends=('python' 'python2' 'z3')
+makedepends=('cmake' 'git')
+source=("git+https://github.com/yrnkrn/zapcc.git#commit=35fa2aed76fffa222db340dcb9257f66dc858d42")
+sha256sums=('SKIP')
+
+build() {
+  mkdir -p build
+  cd build
+  cmake "../$pkgname" \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DLLVM_ENABLE_WARNINGS=OFF \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DPYTHON_EXECUTABLE=/usr/bin/python \
+    -DLLVM_LINK_LLVM_DYLIB=ON \
+    -DLLVM_ENABLE_RTTI=ON
+  make
+}
+
+package() {
+  cd build
+  for component in clang-headers zapcc zapccs; do
+    DESTDIR="$pkgdir" cmake -DCOMPONENT="$component" -P ./cmake_install.cmake
+  done
+  install -Dm644 ../$pkgname/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list