summaryrefslogtreecommitdiff
path: root/extra/libcl
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-07-20 11:40:14 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-07-20 11:40:14 -0300
commit2f352ca8b911d96566b10adc049f76a552ab93aa (patch)
treea70b2a875856fbf847f12ae33f9434ea8ca1ef56 /extra/libcl
parent12c074375919d2de177eb9456352866902118a03 (diff)
parent94e3eb45cd3402cbc5efd70ae725e8d48ed696af (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/pbzip2/PKGBUILD extra/audacious/PKGBUILD extra/stardict/PKGBUILD
Diffstat (limited to 'extra/libcl')
-rw-r--r--extra/libcl/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/extra/libcl/PKGBUILD b/extra/libcl/PKGBUILD
new file mode 100644
index 000000000..27e0ea272
--- /dev/null
+++ b/extra/libcl/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 131923 2011-07-17 14:52:39Z ibiru $
+#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
+}