summaryrefslogtreecommitdiffstats
path: root/abs/core/libcl
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2011-07-26 00:35:58 (GMT)
committerBritney Fransen <brfransen@gmail.com>2011-07-26 00:35:58 (GMT)
commiteb8d56deb4c91991ae097e8e2c4a568b2e364f13 (patch)
treeb217b50711face76ccc49a95b57db20870449ebe /abs/core/libcl
parentb80a1a82adc3bc54cc2b3cebdc916c0a5b9d1a50 (diff)
downloadlinhes_pkgbuild-eb8d56deb4c91991ae097e8e2c4a568b2e364f13.zip
linhes_pkgbuild-eb8d56deb4c91991ae097e8e2c4a568b2e364f13.tar.gz
linhes_pkgbuild-eb8d56deb4c91991ae097e8e2c4a568b2e364f13.tar.bz2
libcl: Initial inclusion. Dep of nvidia-utils
Diffstat (limited to 'abs/core/libcl')
-rw-r--r--abs/core/libcl/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/abs/core/libcl/PKGBUILD b/abs/core/libcl/PKGBUILD
new file mode 100644
index 0000000..cd9e82e
--- /dev/null
+++ b/abs/core/libcl/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id$
+#Maintainer: Ionut Biru <ibiru@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
+}
+md5sums=('9e74b1913ff5eb6786600d47b64ba57d')