summaryrefslogtreecommitdiff
path: root/extra/nvidia-390xx-utils/PKGBUILD
blob: bb34bd2041251e87ad9640499ed2b6b0fe115e07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
_arch='x86'
_pkg="${_pkg%-no-compat32}"
_pkg="${_pkg/x86_64/x86}"

for ((i=${#source[@]}; i>0; i--)); do
  if [ "${source[${i}]}" = "http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run" ]; then
    break;
  fi
done
source[${i}]="http://us.download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run"
sha512sums[${i}]='be9aa735d2d0a3e14b4a7dddcbe74ef156740365e93eefe853a03ecae392af6875add41307b889e59d62516f7efe292b12c0a9a29916e8b4ce144b817eed2c39'

eval "$(
  declare -f package_nvidia-390xx-utils | \
    sed '
      /^\s*provides=/ s/);/ '"'"'libgl'"'"');/
    '
)"