[arch-commits] Commit in nvidia-304xx-lts/repos (6 files)
Felix Yan
fyan at archlinux.org
Wed Sep 2 09:03:34 UTC 2015
Date: Wednesday, September 2, 2015 @ 11:03:34
Author: fyan
Revision: 245194
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
nvidia-304xx-lts/repos/testing-i686/
nvidia-304xx-lts/repos/testing-i686/PKGBUILD
(from rev 245193, nvidia-304xx-lts/trunk/PKGBUILD)
nvidia-304xx-lts/repos/testing-i686/nvidia-304xx-lts.install
(from rev 245193, nvidia-304xx-lts/trunk/nvidia-304xx-lts.install)
nvidia-304xx-lts/repos/testing-x86_64/
nvidia-304xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 245193, nvidia-304xx-lts/trunk/PKGBUILD)
nvidia-304xx-lts/repos/testing-x86_64/nvidia-304xx-lts.install
(from rev 245193, nvidia-304xx-lts/trunk/nvidia-304xx-lts.install)
-----------------------------------------+
testing-i686/PKGBUILD | 47 ++++++++++++++++++++++++++++++
testing-i686/nvidia-304xx-lts.install | 15 +++++++++
testing-x86_64/PKGBUILD | 47 ++++++++++++++++++++++++++++++
testing-x86_64/nvidia-304xx-lts.install | 15 +++++++++
4 files changed, 124 insertions(+)
Copied: nvidia-304xx-lts/repos/testing-i686/PKGBUILD (from rev 245193, nvidia-304xx-lts/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2015-09-02 09:03:34 UTC (rev 245194)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andreas Radke <andyrtr at archlinux.org>
+
+pkgname=nvidia-304xx-lts
+pkgver=304.128
+_extramodules=extramodules-3.14-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.14.42' 'libgl' "nvidia-304xx-utils=${pkgver}")
+makedepends=('linux-lts-headers>=3.14.42')
+conflicts=('nvidia-lts' 'nvidia-96xx-lts' 'nvidia-173xx-lts')
+provides=('nvidia-304xx')
+license=('custom')
+install=nvidia-304xx-lts.install
+options=(!strip)
+source_i686=("http://us.download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run")
+source_x86_64=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run")
+sha512sums_i686=('9822b61872ae28751cd5c41714048612f7ddf0fd9f02e6340598150afbea43dddeba88482a8c88bcf893b015d14b2a2cf5157ed60583da57fdfe183ecb620c90')
+sha512sums_x86_64=('fa7a81edaba92561314b4874635e639607cf2f9bcde10609764528a35bb2d4a6916c7ea2be2cdcb9e2abf5ac7455f54287ff7218f3e57acc67bdeae18a208db2')
+
+if [ "$CARCH" = "i686" ]; then
+ _arch='x86'
+ _pkg="NVIDIA-Linux-${_arch}-${pkgver}"
+elif [ "$CARCH" = "x86_64" ]; then
+ _arch='x86_64'
+ _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
+fi
+
+build() {
+ _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+ 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"
+ install -D -m644 ${_pkg}/LICENSE "${pkgdir}/usr/share/licenses/nvidia-304xx-lts/LICENSE"
+}
Copied: nvidia-304xx-lts/repos/testing-i686/nvidia-304xx-lts.install (from rev 245193, nvidia-304xx-lts/trunk/nvidia-304xx-lts.install)
===================================================================
--- testing-i686/nvidia-304xx-lts.install (rev 0)
+++ testing-i686/nvidia-304xx-lts.install 2015-09-02 09:03:34 UTC (rev 245194)
@@ -0,0 +1,15 @@
+post_install() {
+ EXTRAMODULES='extramodules-3.14-lts'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+ echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+ EXTRAMODULES='extramodules-3.14-lts'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+ EXTRAMODULES='extramodules-3.14-lts'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
Copied: nvidia-304xx-lts/repos/testing-x86_64/PKGBUILD (from rev 245193, nvidia-304xx-lts/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2015-09-02 09:03:34 UTC (rev 245194)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andreas Radke <andyrtr at archlinux.org>
+
+pkgname=nvidia-304xx-lts
+pkgver=304.128
+_extramodules=extramodules-3.14-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.14.42' 'libgl' "nvidia-304xx-utils=${pkgver}")
+makedepends=('linux-lts-headers>=3.14.42')
+conflicts=('nvidia-lts' 'nvidia-96xx-lts' 'nvidia-173xx-lts')
+provides=('nvidia-304xx')
+license=('custom')
+install=nvidia-304xx-lts.install
+options=(!strip)
+source_i686=("http://us.download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run")
+source_x86_64=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run")
+sha512sums_i686=('9822b61872ae28751cd5c41714048612f7ddf0fd9f02e6340598150afbea43dddeba88482a8c88bcf893b015d14b2a2cf5157ed60583da57fdfe183ecb620c90')
+sha512sums_x86_64=('fa7a81edaba92561314b4874635e639607cf2f9bcde10609764528a35bb2d4a6916c7ea2be2cdcb9e2abf5ac7455f54287ff7218f3e57acc67bdeae18a208db2')
+
+if [ "$CARCH" = "i686" ]; then
+ _arch='x86'
+ _pkg="NVIDIA-Linux-${_arch}-${pkgver}"
+elif [ "$CARCH" = "x86_64" ]; then
+ _arch='x86_64'
+ _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
+fi
+
+build() {
+ _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+ 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"
+ install -D -m644 ${_pkg}/LICENSE "${pkgdir}/usr/share/licenses/nvidia-304xx-lts/LICENSE"
+}
Copied: nvidia-304xx-lts/repos/testing-x86_64/nvidia-304xx-lts.install (from rev 245193, nvidia-304xx-lts/trunk/nvidia-304xx-lts.install)
===================================================================
--- testing-x86_64/nvidia-304xx-lts.install (rev 0)
+++ testing-x86_64/nvidia-304xx-lts.install 2015-09-02 09:03:34 UTC (rev 245194)
@@ -0,0 +1,15 @@
+post_install() {
+ EXTRAMODULES='extramodules-3.14-lts'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+ echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+ EXTRAMODULES='extramodules-3.14-lts'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+ EXTRAMODULES='extramodules-3.14-lts'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
More information about the arch-commits
mailing list