[arch-commits] Commit in (5 files)

andyrtr at archlinux.org andyrtr at archlinux.org
Sun Dec 2 10:35:35 UTC 2012


    Date: Sunday, December 2, 2012 @ 05:35:35
  Author: andyrtr
Revision: 172302

add nvidia-304xx-lts pkg

Added:
  nvidia-304xx-lts/
  nvidia-304xx-lts/repos/
  nvidia-304xx-lts/trunk/
  nvidia-304xx-lts/trunk/PKGBUILD
  nvidia-304xx-lts/trunk/nvidia-304xx-lts.install

--------------------------+
 PKGBUILD                 |   45 +++++++++++++++++++++++++++++++++++++++++++++
 nvidia-304xx-lts.install |   15 +++++++++++++++
 2 files changed, 60 insertions(+)

Added: nvidia-304xx-lts/trunk/PKGBUILD
===================================================================
--- nvidia-304xx-lts/trunk/PKGBUILD	                        (rev 0)
+++ nvidia-304xx-lts/trunk/PKGBUILD	2012-12-02 10:35:35 UTC (rev 172302)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+
+pkgname=nvidia-304xx-lts
+pkgver=304.64
+_extramodules=extramodules-3.0-lts
+pkgrel=1
+pkgdesc="NVIDIA drivers for linux-lts, 304xx legacy branch"
+arch=('i686' 'x86_64')
+url="http://www.nvidia.com/"
+depends=('linux-lts>=3.0.0' "nvidia-304xx-utils=${pkgver}")
+makedepends=('linux-lts-headers>=3.0.0')
+conflicts=('nvidia-lts' 'nvidia-96xx-lts' 'nvidia-173xx-lts')
+provides=('nvidia')
+license=('custom')
+install=nvidia-304xx-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=('6964415cf648a5f4f38117b168369de2')
+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=('76007ed4b72afd334e26377b646f5f7e')
+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}/nvidia.ko"
+    install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+    echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-304xx-lts.conf"
+    echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-304xx-lts.conf"
+    gzip "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia.ko"
+}


Property changes on: nvidia-304xx-lts/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: nvidia-304xx-lts/trunk/nvidia-304xx-lts.install
===================================================================
--- nvidia-304xx-lts/trunk/nvidia-304xx-lts.install	                        (rev 0)
+++ nvidia-304xx-lts/trunk/nvidia-304xx-lts.install	2012-12-02 10:35:35 UTC (rev 172302)
@@ -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