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

Sven-Hendrik Haase svenstaro at archlinux.org
Thu Mar 26 11:50:11 UTC 2020


    Date: Thursday, March 26, 2020 @ 11:50:10
  Author: svenstaro
Revision: 604431

archrelease: copy trunk to community-x86_64

Added:
  pocl/repos/community-x86_64/
  pocl/repos/community-x86_64/PKGBUILD
    (from rev 604430, pocl/trunk/PKGBUILD)

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

Copied: pocl/repos/community-x86_64/PKGBUILD (from rev 604430, pocl/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-03-26 11:50:10 UTC (rev 604431)
@@ -0,0 +1,38 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: spider-mario <spidermario at free.fr>
+# Contributor: Olaf Leidinger <oleid at mescharet.de>
+# Contributor: fabien Cellier <fabien.cellier at gmail.com>
+
+pkgname=pocl
+pkgver=1.4
+pkgrel=2
+pkgdesc="Portable OpenCL is an open-source implementation of OpenCL which can be easily adapted for new targets"
+arch=('x86_64')
+url="http://portablecl.org/"
+license=('GPL')
+depends=('clang' 'hwloc' 'libltdl' 'opencl-headers' 'opencl-icd-loader')
+source=("https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz")
+makedepends=('cmake' 'llvm' 'ocl-icd')
+sha512sums=('ef4911638c76d988c120b69a991e54773a6b8bde49433c2e0f1703c374fa65a4fa64ebcaec94569863458032c17d8cb9879dc501b7e3a43b2c24524bce1b6098')
+
+build() {
+  mkdir -p build
+  cd build
+
+  cmake \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DCMAKE_BUILD_TYPE=Release \
+    "$srcdir/$pkgname-$pkgver"
+  make
+}
+
+check() {
+  cd build
+  make check
+}
+
+package() {
+  cd build
+  make DESTDIR="$pkgdir"/ install
+}



More information about the arch-commits mailing list