summaryrefslogtreecommitdiffstats
path: root/abs/core/nvidia-utils/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/nvidia-utils/PKGBUILD')
-rw-r--r--abs/core/nvidia-utils/PKGBUILD28
1 files changed, 14 insertions, 14 deletions
diff --git a/abs/core/nvidia-utils/PKGBUILD b/abs/core/nvidia-utils/PKGBUILD
index 4e5c35c..e38a75a 100644
--- a/abs/core/nvidia-utils/PKGBUILD
+++ b/abs/core/nvidia-utils/PKGBUILD
@@ -1,26 +1,21 @@
-# $Id: PKGBUILD 199766 2013-11-15 21:30:02Z svenstaro $
+# $Id$
# Maintainer: Thomas Baechler <thomas@archlinux.org>
# Contributor: James Rayner <iphitus@gmail.com>
pkgbase=nvidia-utils
pkgname=('nvidia-utils' 'nvidia-libgl' 'opencl-nvidia')
-pkgver=331.20
+pkgver=331.49
pkgrel=1
arch=('i686' 'x86_64')
url="http://www.nvidia.com/"
license=('custom')
options=('!strip')
+source=("ftp://download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run"
+ "ftp://download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run")
+sha1sums=('3ab5c9e3b206cdb93baf6ea17dafe1486dbaa03f'
+ '72f7c25ba94041a80f81a8d8bf025ef680ed1f4f')
-if [ "$CARCH" = "i686" ]; then
- _arch='x86'
- _pkg="NVIDIA-Linux-${_arch}-${pkgver}"
- source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
- md5sums+=('801aa04a087891690f1cac09575b2ba9')
-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+=('28295eed56c2ca996401c0093279620f')
-fi
+[[ "$CARCH" = "i686" ]] && _pkg="NVIDIA-Linux-x86-${pkgver}"
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
create_links() {
# create soname links
@@ -48,6 +43,9 @@ package_opencl-nvidia() {
install -D -m755 "libnvidia-opencl.so.${pkgver}" "${pkgdir}/usr/lib/libnvidia-opencl.so.${pkgver}"
create_links
+
+ mkdir -p "${pkgdir}/usr/share/licenses"
+ ln -s nvidia "${pkgdir}/usr/share/licenses/opencl-nvidia"
}
package_nvidia-libgl() {
@@ -65,6 +63,9 @@ package_nvidia-libgl() {
ln -s "/usr/lib/nvidia/libGL.so.${pkgver}" "${pkgdir}/usr/lib/libGL.so.${pkgver}"
ln -s "libGL.so.${pkgver}" "${pkgdir}/usr/lib/libGL.so.1"
ln -s "libGL.so.${pkgver}" "${pkgdir}/usr/lib/libGL.so"
+
+ mkdir -p "${pkgdir}/usr/share/licenses"
+ ln -s nvidia "${pkgdir}/usr/share/licenses/nvidia-libgl"
}
package_nvidia-utils() {
@@ -121,4 +122,3 @@ package_nvidia-utils() {
create_links
}
-md5sums=('28295eed56c2ca996401c0093279620f')