From ff36e2c1205314c5ea9edbba8b8a7fb6f5f16e28 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 13 Feb 2018 21:41:01 +0100 Subject: extra/nvidia: only change _one_ source, not all --- extra/nvidia/PKGBUILD | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/extra/nvidia/PKGBUILD b/extra/nvidia/PKGBUILD index c34d17af..7b7de795 100644 --- a/extra/nvidia/PKGBUILD +++ b/extra/nvidia/PKGBUILD @@ -1,12 +1,12 @@ makedepends+=('libglvnd') -unset source -unset sha256sums - -source_i686=("http://us.download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run" - "4.15-FS57305.patch") -sha512sums_i686=('59f5d832a0372ec5a19e356f3cf9b82f1f704381683eca845092659df03791b21511c32f3c2bb5a263978c86b2008c1fdfde3b3a125100235948291cad99f8b3' - '145d436f117455a1a8315b31dc2c9fce3c90c135d8c530b8b8da0e70548f48d9') +for ((i=0; i<${#source[@]}; i++)); do + if [ "${source[${i}]}" = "http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run" ]; then + source[${i}]="http://us.download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run" + sha256sum[${i}]='1183552b46409a3c09caa172da5a296b56078d178c5ad272bed7101a40bf6b3a' + break + fi +done _pkg="NVIDIA-Linux-x86-${pkgver}" -- cgit v1.2.3-70-g09d2