1 # $Id: PKGBUILD 83850 2010-06-23 10:39:40Z pierre $
2 # Maintainer : wuyingren <keitaroh@gmail.com>
3 # Contributor : Thomas Baechler <thomas@archlinux.org>
4 # Adapted for fbcondecor by: Conrad Nelson
6 pkgname=nvidia-fbcondecor
8 _extramodules=extramodules-3.2-fbcondecor
9 _kernver="$(cat /lib/modules/${_extramodules}/version)"
11 pkgdesc="NVIDIA drivers for linux kernel 3.2 patched with fbcondecor."
12 arch=('i686' 'x86_64')
13 url="http://www.nvidia.com/"
14 depends=('linux-fbcondecor>=3.2' 'linux-fbcondecor<3.3' "nvidia-utils=${pkgver}")
15 makedepends=('linux-headers>=3.2' 'linux-headers<3.3')
16 conflicts=('nvidia-96xx' 'nvidia-173xx')
18 install=nvidia-fbcondecor.install
21 if [ "$CARCH" = "i686" ]; then
23 _pkg="NVIDIA-Linux-${_arch}-${pkgver}"
24 source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
25 md5sums=('50319a4b3818c12c9c7243525e0e6316')
26 elif [ "$CARCH" = "x86_64" ]; then
28 _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
29 source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
30 md5sums=('cebfba9a7e91716a06c66bb5b38d9661')
35 sh "${_pkg}.run" --extract-only
37 make SYSSRC=/lib/modules/"${_kernver}/build" module
41 install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
42 "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko"
43 install -d -m755 "${pkgdir}/etc/modprobe.d"
44 echo "blacklist nouveau" >> "${pkgdir}/etc/modprobe.d/nouveau_blacklist.conf"
45 sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia-fbcondecor.install"
46 gzip "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko"