# Contributor: Carlo Landmeter # Maintainer: _flavor=xbmc # source the kernel version if [ -f ../linux-${_flavor}/APKBUILD ]; then . ../linux-${_flavor}/APKBUILD fi _kernelver="$pkgver-r$pkgrel" _abi_release=${pkgver}-${_flavor} _kpkgrel=$pkgrel _realname=nvidia-linux pkgname=${_realname}-${_flavor} pkgver=256.53 pkgrel=3 pkgdesc="NVIDIA binary driver $pkgver" url="http://www.nvidia.com/" license="custom" subpackages="" depends="linux-${_flavor}=${_kernelver}" makedepends="linux-${_flavor}-dev=${_kernelver}" source="ftp://download.nvidia.com/XFree86/Linux-x86/$pkgver/NVIDIA-Linux-x86-$pkgver.run" prepare() { cd "$srcdir" sh NVIDIA-Linux-x86-${pkgver}.run --extract-only } build() { cd "$srcdir/NVIDIA-Linux-x86-$pkgver/kernel" make SYSSRC="/lib/modules/$_abi_release/build" module } package() { install -D -m644 "$srcdir/NVIDIA-Linux-x86-$pkgver/kernel/nvidia.ko" \ "$pkgdir/lib/modules/$_abi_release/kernel/drivers/video/nvidia.ko" install -d -m755 $pkgdir/etc/modprobe.d echo "blacklist nouveau" >> "$pkgdir"/etc/modprobe.d/nouveau_blacklist.conf } md5sums="21fe3fe0afed7818b7adf383477b2155 NVIDIA-Linux-x86-256.53.run"