[arch-commits] Commit in (libcl libcl/repos libcl/trunk libcl/trunk/PKGBUILD)

Ionut Biru ibiru at archlinux.org
Sun Jul 17 10:52:40 EDT 2011


    Date: Sunday, July 17, 2011 @ 10:52:39
  Author: ibiru
Revision: 131923

use the nvidia opencl loader for now until a opensource version is available

Added:
  libcl/
  libcl/repos/
  libcl/trunk/
  libcl/trunk/PKGBUILD

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

Added: libcl/trunk/PKGBUILD
===================================================================
--- libcl/trunk/PKGBUILD	                        (rev 0)
+++ libcl/trunk/PKGBUILD	2011-07-17 14:52:39 UTC (rev 131923)
@@ -0,0 +1,37 @@
+# $Id$
+#Maintainer: Ionut Biru <ibiru at archlinux.org>
+
+pkgname=libcl
+pkgver=1.0
+_pkgver=275.19
+pkgrel=1
+pkgdesc="OpenCL library and ICD loader from NVIDIA"
+arch=('i686' 'x86_64')
+url="http://www.nvidia.com/"
+depends=('gcc-libs')
+license=('custom')
+options=('!strip')
+
+if [ "$CARCH" = "i686" ]; then
+    _arch='x86'
+    _pkg="NVIDIA-Linux-${_arch}-${_pkgver}"
+    source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${_pkgver}/${_pkg}.run")
+    md5sums=('9e74b1913ff5eb6786600d47b64ba57d')
+elif [ "$CARCH" = "x86_64" ]; then
+    _arch='x86_64'
+    _pkg="NVIDIA-Linux-${_arch}-${_pkgver}-no-compat32"
+    source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${_pkgver}/${_pkg}.run")
+    md5sums=('45a6074db3efe961d025afa7a89fa036')
+fi
+build() {
+    cd $srcdir
+    sh ${_pkg}.run --extract-only
+}
+
+package() {
+    cd $srcdir/${_pkg}
+    install -D -m755 libOpenCL.so.1.0.0 $pkgdir/usr/lib/libOpenCL.so.1.0.0
+    ln -s /usr/lib/libOpenCL.so.1.0.0 $pkgdir/usr/lib/libOpenCL.so.1
+    ln -s /usr/lib/libOpenCL.so.1 $pkgdir/usr/lib/libOpenCL.so
+    install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}


Property changes on: libcl/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
   + Id



More information about the arch-commits mailing list