updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / nvidia-fbcondecor / PKGBUILD
blob43f7f7e3d6ddd2d5e5753e4892946cd7bd0759ba
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
7 pkgver=290.10
8 _extramodules=extramodules-3.2-fbcondecor
9 _kernver="$(cat /lib/modules/${_extramodules}/version)"
10 pkgrel=2
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')
17 license=('custom')
18 install=nvidia-fbcondecor.install
21 if [ "$CARCH" = "i686" ]; then
22         _arch='x86'
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
27         _arch='x86_64'
28         _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
29         source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
30         md5sums=('cebfba9a7e91716a06c66bb5b38d9661')
33 build() {
34         cd "${srcdir}"
35         sh "${_pkg}.run" --extract-only
36         cd "${_pkg}/kernel"
37         make SYSSRC=/lib/modules/"${_kernver}/build" module
40 package() {
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"