diff options
Diffstat (limited to 'abs/core/nvidia-340xx-utils')
-rw-r--r-- | abs/core/nvidia-340xx-utils/PKGBUILD | 17 | ||||
-rw-r--r-- | abs/core/nvidia-340xx-utils/nvidia-340xx-utils.install | 18 | ||||
-rw-r--r-- | abs/core/nvidia-340xx-utils/nvidia-drm-outputclass.conf | 6 |
3 files changed, 25 insertions, 16 deletions
diff --git a/abs/core/nvidia-340xx-utils/PKGBUILD b/abs/core/nvidia-340xx-utils/PKGBUILD index 46681f7..1645256 100644 --- a/abs/core/nvidia-340xx-utils/PKGBUILD +++ b/abs/core/nvidia-340xx-utils/PKGBUILD @@ -2,18 +2,21 @@ # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> # Maintainer: Thomas Baechler <thomas@archlinux.org> # Contributor: James Rayner <iphitus@gmail.com> + pkgbase=nvidia-340xx-utils pkgname=('nvidia-340xx-utils' 'nvidia-340xx-libgl' 'opencl-nvidia-340xx') -pkgver=340.65 +pkgver=340.96 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=('051a5b6aad243c5b57ed18455a91f9aa028de86d' - '2b1a102e87740ebb5367a5e8cd76d4f38de2add1') +source=(nvidia-drm-outputclass.conf) +source_i686=("ftp://download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run") +source_x86_64=("ftp://download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run") +sha1sums=('4ca2fbb2389d0bcb7a2c6f614860522d9ddf58ab') +sha1sums_i686=('082e5218059b565f652236a69e61d8426696098c') +sha1sums_x86_64=('49a1038f8f709a0a8855c7071db5923749d071e2') [[ "$CARCH" = "i686" ]] && _pkg="NVIDIA-Linux-x86-${pkgver}" [[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32" @@ -179,5 +182,9 @@ package_nvidia-340xx-utils() { cp -r html "${pkgdir}/usr/share/doc/nvidia/" ln -s nvidia "${pkgdir}/usr/share/doc/nvidia-utils" + # distro specific files must be installed in /usr/share/X11/xorg.conf.d + install -m755 -d "${pkgdir}/usr/share/X11/xorg.conf.d" + install -m644 "${srcdir}/nvidia-drm-outputclass.conf" "${pkgdir}/usr/share/X11/xorg.conf.d/" + create_links } diff --git a/abs/core/nvidia-340xx-utils/nvidia-340xx-utils.install b/abs/core/nvidia-340xx-utils/nvidia-340xx-utils.install index df17a32..1955c64 100644 --- a/abs/core/nvidia-340xx-utils/nvidia-340xx-utils.install +++ b/abs/core/nvidia-340xx-utils/nvidia-340xx-utils.install @@ -1,14 +1,10 @@ -post_install() { - if ! getent group nvidia-persistenced >/dev/null; then - groupadd -g 143 nvidia-persistenced - fi - if ! getent passwd nvidia-persistenced >/dev/null; then - useradd -c 'NVIDIA Persistence Daemon' -u 143 -g nvidia-persistenced -d '/' -s /sbin/nologin nvidia-persistenced - fi +post_upgrade() { + echo "If you run into trouble with CUDA not being available, run nvidia-modprobe first." } -post_remove() { - if getent group nvidia-persistenced >/dev/null; then - userdel -f nvidia-persistenced - fi +post_install() { + getent group nvidia-persistenced &>/dev/null || groupadd -g 143 nvidia-persistenced + getent passwd nvidia-persistenced &>/dev/null || useradd -c 'NVIDIA Persistence Daemon' -u 143 -g nvidia-persistenced -d '/' -s /sbin/nologin nvidia-persistenced + + post_upgrade } diff --git a/abs/core/nvidia-340xx-utils/nvidia-drm-outputclass.conf b/abs/core/nvidia-340xx-utils/nvidia-drm-outputclass.conf new file mode 100644 index 0000000..40c1e08 --- /dev/null +++ b/abs/core/nvidia-340xx-utils/nvidia-drm-outputclass.conf @@ -0,0 +1,6 @@ +Section "OutputClass" + Identifier "nvidia" + MatchDriver "nvidia-drm" + Driver "nvidia" +EndSection + |