diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-04-25 20:32:31 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-04-25 20:32:31 (GMT) |
commit | e23a1e954281b82bff30245921e7ab17610c1e0e (patch) | |
tree | ce2daefb5dcb744c93015d2a8f2734ea28553720 /abs/core/nvidia-340xx-utils/PKGBUILD | |
parent | 3d77e5b9db1a265572ec111c2e2854923756b3c6 (diff) | |
download | linhes_pkgbuild-e23a1e954281b82bff30245921e7ab17610c1e0e.zip linhes_pkgbuild-e23a1e954281b82bff30245921e7ab17610c1e0e.tar.gz linhes_pkgbuild-e23a1e954281b82bff30245921e7ab17610c1e0e.tar.bz2 |
nvidia-340xx & nvidia-340xx-utils: update to 340.106
Diffstat (limited to 'abs/core/nvidia-340xx-utils/PKGBUILD')
-rw-r--r-- | abs/core/nvidia-340xx-utils/PKGBUILD | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/abs/core/nvidia-340xx-utils/PKGBUILD b/abs/core/nvidia-340xx-utils/PKGBUILD index 9d132f3..38a84fb 100644 --- a/abs/core/nvidia-340xx-utils/PKGBUILD +++ b/abs/core/nvidia-340xx-utils/PKGBUILD @@ -5,25 +5,25 @@ pkgbase=nvidia-340xx-utils pkgname=('nvidia-340xx-utils' 'opencl-nvidia-340xx') -pkgver=340.104 +pkgver=340.106 pkgrel=1 arch=('x86_64') url="http://www.nvidia.com/" license=('custom') options=('!strip') -source=(nvidia-drm-outputclass.conf) -source_i686=("http://us.download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run") -source_x86_64=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run") -sha512sums=('cfea06a816ac4a8b728b1ec728d667cdcca604abb038e8b5313b434021caad06a586856b8b3a6c79f8c925629360f5a051ca3de5ab46a42af76b9d0615d2bbbe') -sha512sums_i686=('8dacd5345a5794e862f4106ab9e8e402defa7883dd176c243d019209b560fe955d7576a13936364c01c5a249f15df58208308c9378c12c3438784376e5fb806c') -sha512sums_x86_64=('e962494561728af5a911354bfb3560e414464f7858f30f9654eac5ca56175bc8498d1eee93a18248c63e9eee7d84807ef924fe9f53239644d7085b0f3502bf8c') +source=(nvidia-drm-outputclass.conf + "http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run" + nvidia-340xx-utils.sysusers) +sha512sums=('c49d246a519731bfab9d22afa5c2dd2d366db06d80182738b84881e93cd697c783f16ee04819275c05597bb063451a5d6102fbc562cd078d2a374533a23cea48' + 'ea61d463148435b6c0d16203c06372e5dc93443607ece0709f789c5c08909a3ec51c1994df97b835bba58008cdc7fe588e403006eb00631482a2a9854a81ec0a' + '4b3ad73f5076ba90fe0b3a2e712ac9cde76f469cd8070280f960c3ce7dc502d1927f525ae18d008075c8f08ea432f7be0a6c3a7a6b49c361126dcf42f97ec499') [[ "$CARCH" = "i686" ]] && _pkg="NVIDIA-Linux-x86-${pkgver}" [[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32" create_links() { # create soname links - for _lib in $(find "${pkgdir}" -name '*.so*' | grep -v 'xorg/'); do + find "$pkgdir" -type f -name '*.so*' ! -path '*xorg/*' -print0 | while read -d $'\0' _lib; do _soname=$(dirname "${_lib}")/$(readelf -d "${_lib}" | grep -Po 'SONAME.*: \[\K[^]]*' || true) _base=$(echo ${_soname} | sed -r 's/(.*).so.*/\1.so/') [[ -e "${_soname}" ]] || ln -s $(basename "${_lib}") "${_soname}" @@ -48,7 +48,7 @@ package_opencl-nvidia-340xx() { # OpenCL install -D -m644 nvidia.icd "${pkgdir}/etc/OpenCL/vendors/nvidia.icd" install -D -m755 "libnvidia-compiler.so.${pkgver}" "${pkgdir}/usr/lib/libnvidia-compiler.so.${pkgver}" - install -D -m755 "libnvidia-opencl.so.${pkgver}" "${pkgdir}/usr/lib/libnvidia-opencl.so.${pkgver}" + install -D -m755 "libnvidia-opencl.so.${pkgver}" "${pkgdir}/usr/lib/libnvidia-opencl.so.${pkgver}" create_links @@ -66,7 +66,7 @@ package_nvidia-340xx-utils() { provides=('libgl' 'libgles' 'libegl' 'nvidia-utils' 'nvidia-340xx-libgl') replaces=('nvidia-340xx-libgl') install="${pkgname}.install" - + cd "${_pkg}" # X driver @@ -87,7 +87,7 @@ package_nvidia-340xx-utils() { install -D -m755 "libnvidia-glcore.so.${pkgver}" "${pkgdir}/usr/lib/nvidia/libnvidia-glcore.so.${pkgver}" install -D -m755 "libnvidia-eglcore.so.${pkgver}" "${pkgdir}/usr/lib/nvidia/libnvidia-eglcore.so.${pkgver}" install -D -m755 "libnvidia-glsi.so.${pkgver}" "${pkgdir}/usr/lib/nvidia/libnvidia-glsi.so.${pkgver}" - + # misc install -D -m755 "libnvidia-ifr.so.${pkgver}" "${pkgdir}/usr/lib/nvidia/libnvidia-ifr.so.${pkgver}" install -D -m755 "libnvidia-fbc.so.${pkgver}" "${pkgdir}/usr/lib/nvidia/libnvidia-fbc.so.${pkgver}" @@ -160,5 +160,7 @@ package_nvidia-340xx-utils() { install -dm 755 "${pkgdir}"/etc/ld.so.conf.d echo -e '/usr/lib/nvidia/' > "${pkgdir}"/etc/ld.so.conf.d/00-nvidia.conf + install -Dm644 "${srcdir}/nvidia-340xx-utils.sysusers" "${pkgdir}/usr/lib/sysusers.d/$pkgname.conf" + create_links } |