Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # $Id: PKGBUILD 83850 2010-06-23 10:39:40Z pierre $
- # Maintainer : Thomas Baechler <thomas@archlinux.org>
- # Adapted for fbcondecor by: Conrad Nelson
- pkgname=nvidia-beta-fbcondecor
- pkgver=260.19.06
- _kernver='2.6.35-fbcondecor'
- pkgrel=3
- pkgdesc="NVIDIA drivers for kernel26 patched with fbcondecor."
- arch=('i686' 'x86_64')
- url="http://www.nvidia.com/"
- depends=('kernel26-fbcondecor' 'nvidia-utils-beta')
- makedepends=('kernel26-headers')
- conflicts=('nvidia-96xx' 'nvidia-173xx' 'nvidia-beta')
- license=('custom')
- install=nvidia-fbcondecor.install
- if [ "$CARCH" = "i686" ]; then
- _arch='x86'
- _pkg="NVIDIA-Linux-${_arch}-${pkgver}"
- source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
- md5sums=('21fe3fe0afed7818b7adf383477b2155')
- 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=('69f00bf3f8f381a6a870d9ad341e3a2e')
- fi
- build() {
- cd $srcdir
- sh ${_pkg}.run --extract-only
- cd ${_pkg}/kernel
- make SYSSRC=/lib/modules/${_kernver}/build module
- }
- package() {
- install -D -m644 $srcdir/${_pkg}/kernel/nvidia.ko \
- $pkgdir/lib/modules/${_kernver}/kernel/drivers/video/nvidia.ko
- install -d -m755 $pkgdir/etc/modprobe.d
- echo "blacklist nouveau" >> $pkgdir/etc/modprobe.d/nouveau_blacklist.conf
- sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/nvidia-fbcondecor.install
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement