diff options
author | Britney Fransen <brfransen@gmail.com> | 2019-02-28 19:43:51 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2019-02-28 19:43:51 (GMT) |
commit | 007e83756588920764cb4d834d6549811aecfea3 (patch) | |
tree | 48a8c52a296d4077e0e0a647ce6229cd8d4c14a4 /abs/core/nvidia-390xx-settings/PKGBUILD | |
parent | 4cd6f41f4037d58c1001b2b52a699dd806a3a3e6 (diff) | |
download | linhes_pkgbuild-007e83756588920764cb4d834d6549811aecfea3.zip linhes_pkgbuild-007e83756588920764cb4d834d6549811aecfea3.tar.gz linhes_pkgbuild-007e83756588920764cb4d834d6549811aecfea3.tar.bz2 |
nvidia-390xx nvidia-390xx-utils nvidia-390xx-settings: initial inclusion
Diffstat (limited to 'abs/core/nvidia-390xx-settings/PKGBUILD')
-rw-r--r-- | abs/core/nvidia-390xx-settings/PKGBUILD | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/abs/core/nvidia-390xx-settings/PKGBUILD b/abs/core/nvidia-390xx-settings/PKGBUILD new file mode 100644 index 0000000..1d76904 --- /dev/null +++ b/abs/core/nvidia-390xx-settings/PKGBUILD @@ -0,0 +1,64 @@ +# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com> + +pkgbase=nvidia-390xx-settings +pkgname=('nvidia-390xx-settings' 'libxnvctrl-390xx') +pkgver=390.116 +pkgrel=1 +pkgdesc='Tool for configuring the NVIDIA graphics driver, 390xx legacy branch' +url='https://github.com/NVIDIA/nvidia-settings' +arch=('x86_64') +license=('GPL2') +makedepends=('git' 'inetutils' 'gtk2' 'jansson' 'gtk3' 'libxv' 'libvdpau' 'nvidia-390xx-utils' 'libxext') +options=('staticlibs') +source=(nvidia-settings-${pkgver}.tar.gz::https://github.com/NVIDIA/nvidia-settings/archive/${pkgver}.tar.gz + libxnvctrl_so.patch) +sha512sums=('81d15c4e969b8d5cc02749e9fa32d6ab75f2bccfcfd1d2d74dca4954384df730e50f774c7df45ae915fc64bb7369f438fab2d4d695044e0ba1d6d5db44875751' + 'f69f5dc84fe624579a3c9ce877f4ae4e34c2184877576afbea07b8abdd7ff01e470517f2b77cd11a904518cbcb83fb388ca1d08888006f0ef2854723920c9cf8') + +prepare() { + export PREFIX=/usr + export NV_USE_BUNDLED_LIBJANSSON=0 + cd nvidia-settings-${pkgver} + patch -p1 < "${srcdir}/libxnvctrl_so.patch" +} + +build() { + cd nvidia-settings-${pkgver} + make + make -C src/libXNVCtrl +} + +package_nvidia-390xx-settings() { + depends=('jansson' 'gtk3' 'libxv' 'libvdpau' 'nvidia-390xx-utils' 'libxnvctrl-390xx') + conflicts=('nvidia-settings') + provides=('nvidia-settings') + + cd nvidia-settings-${pkgver} + make DESTDIR="${pkgdir}" 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:' -i "${pkgdir}/usr/share/applications/nvidia-settings.desktop" + + rm "$pkgdir/usr/lib/libnvidia-gtk2.so.$pkgver" +} + +package_libxnvctrl-390xx() { + depends=('libxext') + conflicts=('libxnvctrl') + provides=('libxnvctrl') + pkgdesc='NVIDIA NV-CONTROL X extension, 390xx legacy branch' + + cd nvidia-settings-${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" + + cd src/libXNVCtrl + install -Dm 644 *.h -t "${pkgdir}/usr/include/NVCtrl" + install -Dm 644 libXNVCtrl.a -t "${pkgdir}/usr/lib" + install -Dm 755 libXNVCtrl.so.0.0.0 -t "${pkgdir}/usr/lib" + ln -s libXNVCtrl.so.0.0.0 "${pkgdir}/usr/lib/libXNVCtrl.so.0" + ln -s libXNVCtrl.so.0 "${pkgdir}/usr/lib/libXNVCtrl.so" +} + +# vim: ts=2 sw=2 et: |