summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD39
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e4f6a1d2e8e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = libclc-stable
+ pkgdesc = Library requirements of the OpenCL C programming language
+ pkgver = 12.0.0
+ pkgrel = 1
+ url = https://libclc.llvm.org/
+ arch = x86_64
+ license = MIT
+ makedepends = clang
+ makedepends = llvm
+ makedepends = cmake
+ makedepends = ninja
+ makedepends = python
+ makedepends = git
+ makedepends = spirv-llvm-translator
+ provides = libclc
+ conflicts = libclc
+ conflicts = libclc-git
+ conflicts = libclc-rc
+ source = https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.0/llvm-project-12.0.0.src.tar.xz
+ md5sums = SKIP
+
+pkgname = libclc-stable
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..22afddce47b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+#_ _ _ _ _ _____ _ _
+#| | _______ ____ _| | | || |___ | || |
+#| |/ / _ \ \ / / _` | | | || |_ / /| || |_
+#| < __/\ V / (_| | | |__ _/ / |__ _|
+#|_|\_\___| \_/ \__,_|_|_| |_|/_/ |_|
+
+#Maintainer: kevall474 <kevall474@tuta.io> <https://github.com/kevall474>
+#Credits: Laurent Carlier <lordheavym@gmail.com>
+
+pkgname=libclc-stable
+pkgdesc='Library requirements of the OpenCL C programming language'
+url='https://libclc.llvm.org/'
+pkgver=12.0.0
+pkgrel=1
+arch=('x86_64')
+license=('MIT')
+makedepends=('clang' 'llvm' 'cmake' 'ninja' 'python' 'git' 'spirv-llvm-translator')
+conflicts=('libclc' 'libclc-git' 'libclc-rc')
+provides=('libclc')
+source=("https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver/llvm-project-$pkgver.src.tar.xz")
+md5sums=('SKIP')
+
+build(){
+ cd llvm-project-$pkgver.src/libclc
+
+ rm -rf build
+
+ cmake -H. -G Ninja -Bbuild \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+
+ ninja -C build
+}
+
+package(){
+ DESTDIR="$pkgdir" ninja -C llvm-project-$pkgver.src/libclc/build/ install
+
+ install -Dm644 llvm-project-$pkgver.src/libclc/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}