summaryrefslogtreecommitdiff
path: root/nvidia-sl/Pkgfile
blob: 68d36bca881005ddc262dd9fdd117e76f008796b (plain)
    1 # Description: nVIDIA Linux Display Driver (short lived branch version)
    2 # URL: http://www.nvidia.com/
    3 # Maintainer: Matt Housh, jaeger at crux dot ninja
    4 # Depends on: gtk gl-select
    5 
    6 name=nvidia-sl
    7 version=396.45
    8 release=1
    9 source=(http://us.download.nvidia.com/XFree86/Linux-x86_64/$version/NVIDIA-Linux-x86_64-$version.run \
   10     90-nvidia-uvm.rules)
   11 
   12 build() {
   13     sh NVIDIA-Linux-x86_64-$version.run --extract-only
   14     cd NVIDIA-Linux-x86_64-$version
   15 
   16     # libraries
   17     install -d $PKG/usr/lib/{tls,vdpau}
   18     install -m 0755 libGL.so.$version              $PKG/usr/lib
   19     install -m 0755 libOpenCL.so.1.0.0             $PKG/usr/lib
   20     install -m 0755 libcuda.so.$version            $PKG/usr/lib
   21     install -m 0755 libnvidia-cfg.so.$version      $PKG/usr/lib
   22     install -m 0755 libnvidia-compiler.so.$version $PKG/usr/lib
   23     install -m 0755 libnvidia-encode.so.$version   $PKG/usr/lib
   24     install -m 0755 libnvidia-fbc.so.$version      $PKG/usr/lib
   25     install -m 0755 libnvidia-glcore.so.$version   $PKG/usr/lib
   26     install -m 0755 libnvidia-gtk2.so.$version     $PKG/usr/lib
   27     install -m 0755 libnvidia-gtk3.so.$version     $PKG/usr/lib
   28     install -m 0755 libnvidia-ifr.so.$version      $PKG/usr/lib
   29     install -m 0755 libnvidia-ml.so.$version       $PKG/usr/lib
   30     install -m 0755 libnvidia-opencl.so.$version   $PKG/usr/lib
   31     install -m 0755 libnvidia-tls.so.$version      $PKG/usr/lib
   32     install -m 0755 libnvcuvid.so.$version         $PKG/usr/lib
   33     install -m 0755 tls/libnvidia-tls.so.$version  $PKG/usr/lib/tls
   34     install -m 0755 libvdpau_nvidia.so.$version    $PKG/usr/lib/vdpau
   35     install -m 0755 libnvidia-fatbinaryloader.so.$version $PKG/usr/lib
   36     install -m 0755 libnvidia-glvkspirv.so.$version $PKG/usr/lib
   37 
   38     ln -s libvdpau_nvidia.so.$version $PKG/usr/lib/vdpau/libvdpau_nvidia.so.1
   39     ln -s libvdpau_nvidia.so.$version $PKG/usr/lib/vdpau/libvdpau_nvidia.so
   40 
   41     ln -s libnvcuvid.so.$version $PKG/usr/lib/libnvcuvid.so.1
   42     ln -s libnvcuvid.so.$version $PKG/usr/lib/libnvcuvid.so
   43 
   44     ln -s libnvidia-ml.so.$version $PKG/usr/lib/libnvidia-ml.so.1
   45     ln -s libnvidia-ml.so.$version $PKG/usr/lib/libnvidia-ml.so
   46 
   47     ln -s libOpenCL.so.1.0.0 $PKG/usr/lib/libOpenCL.so
   48 
   49     # xorg driver/extensions
   50     install -d $PKG/usr/lib/xorg/modules/{drivers,extensions}
   51     install -m 0755 nvidia_drv.so                  $PKG/usr/lib/xorg/modules/drivers
   52     install -m 0755 libglx.so.$version             $PKG/usr/lib/xorg/modules/extensions
   53     install -m 0755 libnvidia-wfb.so.$version      $PKG/usr/lib/xorg/modules
   54 
   55     # nvidia programs amd man-pages
   56     install -d $PKG/usr/{bin,share/man/man1}
   57     install -m 0755 nvidia-{debugdump,persistenced,settings,smi,xconfig} \
   58         $PKG/usr/bin
   59     install -m 0644 nvidia-{persistenced,settings,smi,xconfig}.1.gz \
   60         $PKG/usr/share/man/man1
   61 
   62     # desktop file and icon
   63     install -d $PKG/usr/share/{applications,pixmaps}
   64     sed -i 's:__UTILS_PATH__:/usr/bin: ; s:__PIXMAP_PATH__:/usr/share/pixmaps:' nvidia-settings.desktop
   65     install -m 0644 nvidia-settings.desktop $PKG/usr/share/applications
   66     install -m 0644 nvidia-settings.png $PKG/usr/share/pixmaps
   67 
   68     # additional symlinks required by gl-select
   69     ln -s libGL.so.$version $PKG/usr/lib/libGL_so_1_2_nvidia
   70     ln -s libglx.so.$version $PKG/usr/lib/xorg/modules/extensions/libglx_so_nvidia
   71 
   72     # opencl icd file
   73     install -m 0644 -D nvidia.icd $PKG/etc/OpenCL/vendors/nvidia.icd
   74 
   75     # nvidia-uvm module udev rule
   76     install -d $PKG/lib/udev/rules.d
   77     install -m 0644 $SRC/90-nvidia-uvm.rules $PKG/lib/udev/rules.d/90-nvidia-uvm.rules
   78 
   79     # nvidia-settings registry key file
   80     install -D -m 0644 nvidia-application-profiles-$version-key-documentation \
   81         $PKG/usr/share/nvidia/nvidia-application-profiles-$version-key-documentation
   82 
   83     # kernel modules
   84     cd kernel
   85     IGNORE_CC_MISMATCH=1 make module
   86     install -d -m 0755 $PKG/lib/modules/`uname -r`/extra
   87     install -m 0644 *.ko $PKG/lib/modules/`uname -r`/extra/
   88 }

Generated by cgit