Update nvidia-custom to pkgrel 2
This commit is contained in:
parent
a377d35ec9
commit
8ea21fc4f3
2 changed files with 9 additions and 9 deletions
|
@ -1,15 +1,15 @@
|
|||
# $Id: PKGBUILD 199771 2013-11-15 21:40:40Z svenstaro $
|
||||
# Maintainer : Thomas Baechler <thomas@archlinux.org>
|
||||
|
||||
pkgname=nvidia-custom
|
||||
pkgname=nvidia-drd
|
||||
pkgver=331.20
|
||||
_extramodules=extramodules-3.12-custom
|
||||
pkgrel=1
|
||||
_extramodules=extramodules-3.12-drd
|
||||
pkgrel=2
|
||||
pkgdesc="NVIDIA drivers for linux"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://www.nvidia.com/"
|
||||
depends=('linux-custom>=3.12' 'linux-custom<3.13' "nvidia-libgl" "nvidia-utils=${pkgver}")
|
||||
makedepends=('linux-custom-headers>=3.12' 'linux-custom-headers<3.13')
|
||||
depends=('linux-drd>=3.12' 'linux-drd<3.13' "nvidia-libgl" "nvidia-utils=${pkgver}")
|
||||
makedepends=('linux-drd-headers>=3.12' 'linux-drd-headers<3.13')
|
||||
conflicts=('nvidia-96xx' 'nvidia-173xx')
|
||||
license=('custom')
|
||||
install=nvidia.install
|
||||
|
@ -45,7 +45,7 @@ package() {
|
|||
install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
|
||||
"${pkgdir}/usr/lib/modules/${_extramodules}/nvidia.ko"
|
||||
install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
|
||||
echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-custom.conf"
|
||||
echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-drd.conf"
|
||||
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia.install"
|
||||
gzip "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia.ko"
|
||||
}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
post_install() {
|
||||
EXTRAMODULES='extramodules-3.12-custom'
|
||||
EXTRAMODULES='extramodules-3.12-drd'
|
||||
depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
|
||||
echo 'In order to use nvidia module, reboot the system.'
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
EXTRAMODULES='extramodules-3.12-custom'
|
||||
EXTRAMODULES='extramodules-3.12-drd'
|
||||
depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
|
||||
if [ "$(vercmp $2 310.19-2)" -lt 0 ]; then
|
||||
echo 'If your card is from the 7xxx series or earlier, install nvidia-304xx'
|
||||
|
@ -13,6 +13,6 @@ post_upgrade() {
|
|||
}
|
||||
|
||||
post_remove() {
|
||||
EXTRAMODULES='extramodules-3.12-custom'
|
||||
EXTRAMODULES='extramodules-3.12-drd'
|
||||
depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue