[arch-commits] Commit in libclc/repos (staging-any staging-any/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Sat May 29 15:18:46 UTC 2021


    Date: Saturday, May 29, 2021 @ 15:18:45
  Author: foutrelis
Revision: 416825

archrelease: copy trunk to staging-any

Added:
  libclc/repos/staging-any/
  libclc/repos/staging-any/PKGBUILD
    (from rev 416824, libclc/trunk/PKGBUILD)

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

Copied: libclc/repos/staging-any/PKGBUILD (from rev 416824, libclc/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2021-05-29 15:18:45 UTC (rev 416825)
@@ -0,0 +1,35 @@
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+
+pkgname=libclc
+pkgver=12.0.0
+pkgrel=1
+pkgdesc="Library requirements of the OpenCL C programming language"
+arch=('any')
+url="https://libclc.llvm.org/"
+license=('MIT')
+makedepends=('clang' 'llvm' 'cmake' 'ninja' 'python' 'git'
+             'spirv-llvm-translator')
+source=("git+https://github.com/llvm/llvm-project.git#tag=llvmorg-$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cd llvm-project/libclc
+  mkdir build
+}
+
+build() {
+  cd llvm-project/libclc/build
+
+  cmake .. -G Ninja \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  ninja
+}
+
+package() {
+  cd llvm-project/libclc/build
+
+  DESTDIR="$pkgdir" ninja install
+  install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+



More information about the arch-commits mailing list