Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Based on the file created for Arch Linux by:
- # Maintainer : Thomas Baechler <thomas@archlinux.org>
- # Maintainer: Philip Muller <philm@manjaro.org>
- _linuxprefix=linux-lqx
- _extramodules=extramodules-lqx
- _kver=51
- _prevkver=50
- pkgname=nvidia-390xx-$_linuxprefix-$_kver
- _pkgname=nvidia
- pkgver=390.116
- _pkgver=390.116
- pkgrel=8.1
- epoch=1
- provides=("$_pkgname=$_pkgver")
- groups=("$_linuxprefix-extramodules")
- pkgdesc="NVIDIA drivers for linux."
- arch=('i686' 'x86_64')
- url="http://www.nvidia.com/"
- depends=("$_linuxprefix" "nvidia-390xx-utils=${_pkgver}")
- makedepends=("$_linuxprefix-headers")
- conflicts=('nvidia-96xx' 'nvidia-183xx' 'nvidia-340xx-lqx' 'nvidia-304xx-lqx' 'nvidia-lqx' "nvidia-390xx-$_linuxprefix-$_prevkver" "nvidia-390xx-$_linuxprefix")
- license=('custom')
- install=nvidia-lqx.install
- options=(!strip)
- durl="http://us.download.nvidia.com/XFree86/Linux-x86"
- source_i686=("${durl}/${_pkgver}/NVIDIA-Linux-x86-${_pkgver}.run")
- source_x86_64=("${durl}_64/${_pkgver}/NVIDIA-Linux-x86_64-${_pkgver}-no-compat32.run")
- sha256sums_i686=('13133f07e8c733eeca9f78decbcd17754f37f84b9038c8b235f9e89b52fc5b29')
- sha256sums_x86_64=('de85a2eea39ca16e25645b345259b01fbe858b833286b7e6785afa273009ef6f')
- [[ "$CARCH" = "i686" ]] && _pkg="NVIDIA-Linux-x86-${_pkgver}"
- [[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${_pkgver}-no-compat32"
- prepare() {
- sh "${_pkg}.run" --extract-only
- cd "${_pkg}"
- # patches here
- }
- build() {
- _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
- cd "${_pkg}"/kernel
- make SYSSRC=/usr/lib/modules/"${_kernver}/build" module
- }
- package() {
- install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
- "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia.ko"
- install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia-modeset.ko" \
- "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia-modeset.ko"
- install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia-drm.ko" \
- "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia-drm.ko"
- if [[ "$CARCH" = "x86_64" ]]; then
- install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia-uvm.ko" \
- "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia-uvm.ko"
- fi
- gzip "${pkgdir}/usr/lib/modules/${_extramodules}/"*.ko
- sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia-lqx.install"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement