blob: 56a4548c75fcad27eb282edf6459d1832dd552c0 (
plain)
1 # Description: Tool for configuring the NVIDIA graphics driver
2 # URL: https://github.com/NVIDIA/nvidia-settings
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: brotli gtk3 xorg-libxcomposite xorg-libxcursor xorg-libxinerama
5
6 name=nvidia-settings
7 version=495.46
8 release=1
9 source=(https://github.com/NVIDIA/nvidia-settings/archive/$version/$name-$version.tar.gz
10 libxnvctrl_so.patch)
11
12 build() {
13 export PREFIX=/usr
14 export NV_USE_BUNDLED_LIBJANSSON=0
15 export OUTPUTDIR=out
16 cd $name-$version
17 patch -p0 -i $SRC/libxnvctrl_so.patch
18
19 make
20 make -C src/libXNVCtrl
21 make DESTDIR=$PKG install
22
23 rm $PKG/usr/lib/libnvidia-gtk2.so.$version
24
25 # supplied by nvidia
26 # install -D -m644 doc/nvidia-settings.desktop $PKG/usr/share/applications/nvidia-settings.desktop
27 # install -D -m644 doc/nvidia-settings.png $PKG/usr/share/pixmaps/nvidia-settings.png
28
29 # sed \
30 # -e 's:__UTILS_PATH__:/usr/bin:' \
31 # -e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' \
32 # -e 's/__NVIDIA_SETTINGS_DESKTOP_CATEGORIES__/Settings;HardwareSettings;/' \
33 # -i $PKG/usr/share/applications/nvidia-settings.desktop
34 rm $PKG/usr/bin/nvidia-settings $PKG/usr/share/man/man1/nvidia-settings.1.gz
35 find $PKG -type d -empty -delete
36 #
37 cd src/libXNVCtrl
38 install -Dm 644 -t $PKG/usr/include/NVCtrl ./*.h
39 install -d $PKG/usr/lib
40 cp -Pr -t $PKG/usr/lib out/libXNVCtrl.*
41 }
|