From 5adb75142badf6038ba48f69fb9e83db7020411b Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Tue, 23 Jul 2024 21:00:08 +0200 Subject: [PATCH] Contextually add lib32 libnvidia-egl-wayland.so to egl-wayland, just in case --- PKGBUILD | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index 109b413..2fd781e 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -304,7 +304,7 @@ fi pkgname=("${_pkgname_array[@]}") pkgver=$_driver_version -pkgrel=256 +pkgrel=257 arch=('x86_64') url="http://www.nvidia.com/" license=('custom:NVIDIA') @@ -1584,6 +1584,16 @@ nvidia-egl-wayland-tkg() { sed -i "s/Version:.*/Version: $_eglwver/g" "${pkgdir}"/usr/share/pkgconfig/wayland-eglstream-protocols.pc sed -i "s/Version:.*/Version: $_eglwver/g" "${pkgdir}"/usr/share/pkgconfig/wayland-eglstream.pc + + #lib32 + if [ "$_lib32" = "true" ]; then + cd 32 + if [[ -e libnvidia-egl-wayland.so."${_eglwver}" ]]; then + install -Dm755 libnvidia-egl-wayland.so."${_eglwver}" "${pkgdir}"/usr/lib32/libnvidia-egl-wayland.so."${_eglwver}" + ln -s libnvidia-egl-wayland.so."${_eglwver}" "${pkgdir}"/usr/lib32/libnvidia-egl-wayland.so.1 + ln -s libnvidia-egl-wayland.so.1 "${pkgdir}"/usr/lib32/libnvidia-egl-wayland.so + fi + fi } source /dev/stdin <