summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD40
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..80ef0d4d756
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = pocl-cuda-git
+ pkgdesc = Portable OpenCL is an open-source implementation of OpenCL which can be easily adapted for new targets (git version)
+ pkgver = v1.2.r156.ga0b083a1
+ pkgrel = 1
+ url = http://portablecl.org/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = cmake
+ makedepends = llvm
+ makedepends = ocl-icd
+ depends = clang
+ depends = opencl-icd-loader
+ depends = hwloc
+ depends = libltdl
+ depends = opencl-headers
+ depends = cuda
+ provides = pocl
+ conflicts = pocl
+ source = pocl::git+https://github.com/pocl/pocl.git
+ sha256sums = SKIP
+
+pkgname = pocl-cuda-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..44b603bbc52
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Simon Reiser <simonfxr AT gmail DOT com>
+
+pkgname=pocl-cuda-git
+_pkgname=pocl
+pkgver=v1.2.r156.ga0b083a1
+pkgrel=1
+pkgdesc="Portable OpenCL is an open-source implementation of OpenCL which can be easily adapted for new targets (git version)"
+arch=('i686' 'x86_64')
+url="http://portablecl.org/"
+license=('GPL')
+depends=('clang' 'opencl-icd-loader' 'hwloc' 'libltdl' 'opencl-headers' 'cuda')
+makedepends=('git' 'cmake' 'llvm' 'ocl-icd')
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+source=("$_pkgname::git+https://github.com/pocl/pocl.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ mkdir -p build
+ cd build
+
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DPOCL_INSTALL_ICD_VENDORDIR='/etc/OpenCL/vendors' \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DENABLE_CUDA=True \
+ "$srcdir/$_pkgname"
+ make
+}
+
+package() {
+ cd "$srcdir/build"
+ make DESTDIR="$pkgdir"/ install
+}