blob: da7df68ad5a93d7ef27e802e80194f1adf40430d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Maintainer: Karl Ludwig Brennan <karlludwigbrennan@outlook.com>
# Contributor: Jérémy "Vrakfall" Lecocq <jeremy [dot] lecocq [at] protonmail [dot] com>
# Contributor: Sven-Hendrik Haase <svenstaro@archlinux.org>
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
_pkgmainbranch=nvidia-settings
pkgbase=nvidia-525xx-settings
pkgname=('nvidia-525xx-settings' 'libxnvctrl-525xx')
pkgver=525.147.05
pkgrel=1
pkgdesc='Tool for configuring the NVIDIA graphics driver, 525 branch'
url='https://github.com/NVIDIA/nvidia-settings'
arch=('x86_64')
license=('GPL2')
makedepends=('inetutils' 'jansson' 'gtk3' 'libxv' 'libvdpau' "nvidia-utils=${pkgver}" 'libxext')
options=('staticlibs')
source=(${_pkgmainbranch}-${pkgver}.tar.gz::https://github.com/NVIDIA/nvidia-settings/archive/${pkgver}.tar.gz
nvidia-settings-libxnvctrl_so.patch)
sha512sums=('c08f25c9d3435adf3c0ae5a8584faeb90e57dc335579369b3f2eef6f44cbd1ffdf9bdcd7bf7f7d9890018fb82043a99b34da2c3c76b83b072ab50d34de89a75a'
'0303fe615d6ef4e14112998c531a17613b94776f9a6a027ddb81e400fddd5f2ff15583da8b8631c2306aca854edf2f54a8007eb36f1732b4c064c857aaf268ae')
prepare() {
cd ${_pkgmainbranch}-${pkgver}
patch -Np1 -i "${srcdir}"/nvidia-settings-libxnvctrl_so.patch
}
build() {
export PREFIX=/usr
export NV_USE_BUNDLED_LIBJANSSON=0
export OUTPUTDIR=out
cd ${_pkgmainbranch}-${pkgver}
export CFLAGS+=" -ffat-lto-objects"
make
}
package_nvidia-525xx-settings() {
depends=('jansson' 'gtk3' 'libxv' 'libvdpau' "nvidia-utils=${pkgver}" "libxnvctrl=${pkgver}")
conflicts=('nvidia-settings')
provides=("nvidia-settings=${pkgver}")
cd ${_pkgmainbranch}-${pkgver}
DESTDIR="${pkgdir}" make install
install -D -m644 doc/nvidia-settings.desktop "${pkgdir}/usr/share/applications/nvidia-settings.desktop"
install -D -m644 doc/nvidia-settings.png "${pkgdir}/usr/share/pixmaps/nvidia-settings.png"
sed \
-e 's:__UTILS_PATH__:/usr/bin:' \
-e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' \
-e 's/__NVIDIA_SETTINGS_DESKTOP_CATEGORIES__/Settings;HardwareSettings;/' \
-e 's/Icon=.*/Icon=nvidia-settings/' \
-i "${pkgdir}/usr/share/applications/nvidia-settings.desktop"
}
package_libxnvctrl-525xx() {
depends=('libxext')
pkgdesc='NVIDIA NV-CONTROL X extension'
conflicts=('libxnvctrl')
provides=("libxnvctrl=${pkgver}" 'libXNVCtrl.so')
cd ${_pkgmainbranch}-${pkgver}
install -Dm 644 doc/{NV-CONTROL-API.txt,FRAMELOCK.txt} -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 644 samples/{Makefile,README,*.c,*.h,*.mk} -t "${pkgdir}/usr/share/doc/${pkgname}/samples"
install -Dm 644 src/libXNVCtrl/*.h -t "${pkgdir}/usr/include/NVCtrl"
install -d "${pkgdir}/usr/lib"
cp -Pr src/out/libXNVCtrl.* -t "${pkgdir}/usr/lib"
}
|