Commit 11d2ee27 authored by AlmAck's avatar AlmAck

dkms-nvidia replaced by nvidia-dkms fix #143

parent a747b07e
# Platform Packages for Chakra, part of chakra-project.org
#
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
# Contributor: Jason Melton <jason.melton@gmail.com>
# Contributor: Atilla ÖNTAŞ <tarakbumba@gmail.com>
pkgname=dkms-nvidia
_pkgname=nvidia
pkgver=313.18
pkgrel=5
pkgdesc="NVIDIA dynamic kernel module (DKMS) drivers for Linux3x."
arch=('x86_64')
url="http://www.nvidia.com/"
license=('custom')
depends=('dkms')
optdepends=("nvidia-utils=${pkgver}")
provides=("nvidia=${pkgver}")
conflicts=("nvidia")
install=${_pkgname}.install
options=(!strip)
_pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/${_pkg}.run"
'dkms.conf'
'conftest_new.diff')
md5sums=('fa17a260793a38b4b8ae367db2e03b39'
'd3cd9ef93b91c38052fb62f89bd21693'
'2627107ebbd930389b00a9a2cd5e6f42')
build() {
cd $srcdir
sh ${_pkg}.run --extract-only
patch -p1 -i "${srcdir}/conftest_new.diff"
}
package() {
mkdir -p ${pkgdir}/usr/src/${_pkgname}-${pkgver}
cp -a ${srcdir}/${_pkg}/kernel/* ${pkgdir}/usr/src/${_pkgname}-${pkgver}
cp ${srcdir}/dkms.conf ${pkgdir}/usr/src/${_pkgname}-${pkgver}
install -d -m755 $pkgdir/etc/modprobe.d
echo "blacklist nouveau" >> $pkgdir/etc/modprobe.d/nouveau_blacklist.conf
sed -i -e "s:^\(.*nvidia -v\) \(2.*\)\$:\1 '${pkgver}':g" "${startdir}/nvidia.install"
}
--- a/NVIDIA-Linux-x86_64-313.18-no-compat32/kernel/conftest.sh 2013-02-04 15:10:20.669633666 -0500
+++ b/NVIDIA-Linux-x86_64-313.18-no-compat32/kernel/conftest.sh 2013-02-04 15:10:34.283334673 -0500
@@ -1701,7 +1701,7 @@
SUBLEVEL=$(grep "^SUBLEVEL =" $MAKEFILE | cut -d " " -f 3)
if [ -n "$PATCHLEVEL" -a $PATCHLEVEL -ge 6 \
- -a -n "$SUBLEVEL" -a $SUBLEVEL -le 5 ]; then
+ -a -n "$SUBLEVEL" -a $SUBLEVEL -le 6 ]; then
SELECTED_MAKEFILE=Makefile.kbuild
RET=0
fi
PACKAGE_NAME="nvidia"
PACKAGE_VERSION="313.18"
MAKE[0]="make SYSSRC=${kernel_source_dir} module"
CLEAN="make -f Makefile.kbuild clean"
BUILT_MODULE_NAME[0]="nvidia"
DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
AUTOINSTALL="yes"
pre_upgrade() {
pre_remove
}
post_upgrade() {
echo ">>> Make sure to run sudo systemctl enable dkms.service, to have "
echo ">>> this kernel module rebuild on each kernel update "
}
pre_remove() {
dkms remove -m nvidia -v 313.18 --all
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment