[arch-commits] Commit in nvidia-lts/repos (6 files)
Eric Bélanger
eric at archlinux.org
Fri Oct 5 03:01:33 UTC 2012
Date: Thursday, October 4, 2012 @ 23:01:32
Author: eric
Revision: 168004
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
nvidia-lts/repos/testing-i686/
nvidia-lts/repos/testing-i686/PKGBUILD
(from rev 168003, nvidia-lts/trunk/PKGBUILD)
nvidia-lts/repos/testing-i686/nvidia-lts.install
(from rev 168003, nvidia-lts/trunk/nvidia-lts.install)
nvidia-lts/repos/testing-x86_64/
nvidia-lts/repos/testing-x86_64/PKGBUILD
(from rev 168003, nvidia-lts/trunk/PKGBUILD)
nvidia-lts/repos/testing-x86_64/nvidia-lts.install
(from rev 168003, nvidia-lts/trunk/nvidia-lts.install)
-----------------------------------+
testing-i686/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++
testing-i686/nvidia-lts.install | 15 ++++++++++++
testing-x86_64/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++
testing-x86_64/nvidia-lts.install | 15 ++++++++++++
4 files changed, 120 insertions(+)
Copied: nvidia-lts/repos/testing-i686/PKGBUILD (from rev 168003, nvidia-lts/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2012-10-05 03:01:32 UTC (rev 168004)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=nvidia-lts
+pkgver=304.51
+_extramodules=extramodules-3.0-lts
+pkgrel=2
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('i686' 'x86_64')
+url="http://www.nvidia.com/"
+depends=('linux-lts>=3.0.0' "nvidia-utils=$pkgver")
+makedepends=('linux-lts-headers>=3.0.0')
+provides=('nvidia')
+license=('custom')
+install=nvidia-lts.install
+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=('4fde294e139a31528ea7f6efd8885a09')
+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=('2ca10e05cd3b5d2a87caaaad9fd93c06')
+fi
+
+build() {
+ _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+ cd "${srcdir}"
+ sh ${_pkg}.run --extract-only
+ cd "${_pkg}/kernel"
+ make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+ install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+ "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+ gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+ install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+ echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+ echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+ install -D -m644 "${srcdir}/${_pkg}/LICENSE" "${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}
Copied: nvidia-lts/repos/testing-i686/nvidia-lts.install (from rev 168003, nvidia-lts/trunk/nvidia-lts.install)
===================================================================
--- testing-i686/nvidia-lts.install (rev 0)
+++ testing-i686/nvidia-lts.install 2012-10-05 03:01:32 UTC (rev 168004)
@@ -0,0 +1,15 @@
+post_install() {
+ EXTRAMODULES='extramodules-3.0-lts'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+ echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+ EXTRAMODULES='extramodules-3.0-lts'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+ EXTRAMODULES='extramodules-3.0-lts'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
Copied: nvidia-lts/repos/testing-x86_64/PKGBUILD (from rev 168003, nvidia-lts/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2012-10-05 03:01:32 UTC (rev 168004)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=nvidia-lts
+pkgver=304.51
+_extramodules=extramodules-3.0-lts
+pkgrel=2
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('i686' 'x86_64')
+url="http://www.nvidia.com/"
+depends=('linux-lts>=3.0.0' "nvidia-utils=$pkgver")
+makedepends=('linux-lts-headers>=3.0.0')
+provides=('nvidia')
+license=('custom')
+install=nvidia-lts.install
+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=('4fde294e139a31528ea7f6efd8885a09')
+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=('2ca10e05cd3b5d2a87caaaad9fd93c06')
+fi
+
+build() {
+ _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+ cd "${srcdir}"
+ sh ${_pkg}.run --extract-only
+ cd "${_pkg}/kernel"
+ make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+ install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+ "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+ gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+ install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+ echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+ echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+ install -D -m644 "${srcdir}/${_pkg}/LICENSE" "${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}
Copied: nvidia-lts/repos/testing-x86_64/nvidia-lts.install (from rev 168003, nvidia-lts/trunk/nvidia-lts.install)
===================================================================
--- testing-x86_64/nvidia-lts.install (rev 0)
+++ testing-x86_64/nvidia-lts.install 2012-10-05 03:01:32 UTC (rev 168004)
@@ -0,0 +1,15 @@
+post_install() {
+ EXTRAMODULES='extramodules-3.0-lts'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+ echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+ EXTRAMODULES='extramodules-3.0-lts'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+ EXTRAMODULES='extramodules-3.0-lts'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
More information about the arch-commits
mailing list