[arch-commits] Commit in (pocl pocl/repos pocl/trunk pocl/trunk/PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Thu Mar 26 11:50:00 UTC 2020
Date: Thursday, March 26, 2020 @ 11:49:59
Author: svenstaro
Revision: 604430
Move pocl from AUR
Added:
pocl/
pocl/repos/
pocl/trunk/
pocl/trunk/PKGBUILD
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Added: pocl/trunk/PKGBUILD
===================================================================
--- pocl/trunk/PKGBUILD (rev 0)
+++ pocl/trunk/PKGBUILD 2020-03-26 11:49:59 UTC (rev 604430)
@@ -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