mirror of
https://github.com/Frogging-Family/nvidia-all
synced 2024-10-30 15:20:10 +00:00
parent
09678357e9
commit
3185938ec8
42
PKGBUILD
42
PKGBUILD
@ -48,38 +48,42 @@ if [ -z "$_driver_version" ] || [ "$_driver_version" = "latest" ] || [ -z "$_dri
|
||||
fi
|
||||
fi
|
||||
if [[ -z $CONDITION ]]; then
|
||||
read -p " What driver version do you want?`echo $'\n > 1.Vulkan dev: 525.47.26\n 2.530 series: 530.41.03\n 3.525 series: 525.116.04\n 4.520 series: 520.56.06\n 5.515 series: 515.86.01\n 6.510 series: 510.85.02\n 7.495 series: 495.46\n 8.470 series: 470.182.03\n 9.Older series\n 10.Custom version (396.xx series or higher)\n choice[1-9?]: '`" CONDITION;
|
||||
read -p " What driver version do you want?`echo $'\n > 1.Vulkan dev: 525.47.26\n 2.535 series: 535.43.02\n 3.530 series: 530.41.03\n 4.525 series: 525.116.04\n 5.520 series: 520.56.06\n 6.515 series: 515.86.01\n 7.510 series: 510.85.02\n 8.495 series: 495.46\n 9.470 series: 470.182.03\n 10.Older series\n 11.Custom version (396.xx series or higher)\n choice[1-11?]: '`" CONDITION;
|
||||
fi
|
||||
# This will be treated as the latest regular driver.
|
||||
if [ "$CONDITION" = "2" ]; then
|
||||
echo '_driver_version=535.43.02' > options
|
||||
echo '_md5sum=05d498b3f3d2415d5a1a9a53e5553120' >> options
|
||||
echo '_driver_branch=regular' >> options
|
||||
elif [ "$CONDITION" = "3" ]; then
|
||||
echo '_driver_version=530.41.03' > options
|
||||
echo '_md5sum=9049dbe01410eac1e05b249de10f6b91' >> options
|
||||
echo '_driver_branch=regular' >> options
|
||||
elif [ "$CONDITION" = "3" ]; then
|
||||
elif [ "$CONDITION" = "4" ]; then
|
||||
echo '_driver_version=525.116.04' > options
|
||||
echo '_md5sum=416818dcdf3c923b851e88a759bd0e00' >> options
|
||||
echo '_driver_branch=regular' >> options
|
||||
elif [ "$CONDITION" = "4" ]; then
|
||||
elif [ "$CONDITION" = "5" ]; then
|
||||
echo '_driver_version=520.56.06' > options
|
||||
echo '_md5sum=18136ef051cbfc3850e88aa5184b31b8' >> options
|
||||
echo '_driver_branch=regular' >> options
|
||||
elif [ "$CONDITION" = "5" ]; then
|
||||
elif [ "$CONDITION" = "6" ]; then
|
||||
echo '_driver_version=515.86.01' > options
|
||||
echo '_md5sum=5eaf6786f0c92cfcecb1ab950ff70df5' >> options
|
||||
echo '_driver_branch=regular' >> options
|
||||
elif [ "$CONDITION" = "6" ]; then
|
||||
elif [ "$CONDITION" = "7" ]; then
|
||||
echo '_driver_version=510.85.02' > options
|
||||
echo '_md5sum=0367f772fc61bccecee8559c4fe9bb3d' >> options
|
||||
echo '_driver_branch=regular' >> options
|
||||
elif [ "$CONDITION" = "7" ]; then
|
||||
elif [ "$CONDITION" = "8" ]; then
|
||||
echo '_driver_version=495.46' > options
|
||||
echo '_md5sum=db1d6b0f9e590249bbf940a99825f000' >> options
|
||||
echo '_driver_branch=regular' >> options
|
||||
elif [ "$CONDITION" = "8" ]; then
|
||||
elif [ "$CONDITION" = "9" ]; then
|
||||
echo '_driver_version=470.182.03' > options
|
||||
echo '_md5sum=33e5a97d5f05fcf3474b69a95a2ade5d' >> options
|
||||
echo '_driver_branch=regular' >> options
|
||||
elif [ "$CONDITION" = "9" ]; then
|
||||
elif [ "$CONDITION" = "10" ]; then
|
||||
read -p " Which legacy driver version do you want?`echo $'\n > 1.465 series: 465.31\n 2.460 series: 460.91.03\n 3.455 series: 455.45.01\n 4.450 series: 450.119.03\n 5.440 series: 440.100 (kernel 5.8 or lower)\n 6.435 series: 435.21 (kernel 5.6 or lower)\n 7.430 series: 430.64 (kernel 5.5 or lower)\n 8.418 series: 418.113 (kernel 5.5 or lower)\n 9.415 series: 415.27 (kernel 5.4 or lower)\n 10.410 series: 410.104 (kernel 5.5 or lower)\n 11.396 series: 396.54 (kernel 5.3 or lower, 5.1 or lower recommended)\n choice[1-11?]: '`" CONDITION;
|
||||
if [ "$CONDITION" = "2" ]; then
|
||||
echo '_driver_version=460.91.03' > options
|
||||
@ -126,7 +130,7 @@ if [ -z "$_driver_version" ] || [ "$_driver_version" = "latest" ] || [ -z "$_dri
|
||||
echo '_md5sum=4996eefa54392b0c9541d22e88abab66' >> options
|
||||
echo '_driver_branch=regular' >> options
|
||||
fi
|
||||
elif [ "$CONDITION" = "10" ]; then
|
||||
elif [ "$CONDITION" = "11" ]; then
|
||||
echo '_driver_version=custom' > options
|
||||
read -p "What branch do you want?`echo $'\n> 1.Stable or regular beta\n 2.Vulkan dev\nchoice[1-2?]: '`" CONDITION;
|
||||
if [ "$CONDITION" = "2" ]; then
|
||||
@ -285,7 +289,7 @@ fi
|
||||
|
||||
pkgname=("${_pkgname_array[@]}")
|
||||
pkgver=$_driver_version
|
||||
pkgrel=244
|
||||
pkgrel=245
|
||||
arch=('x86_64')
|
||||
url="http://www.nvidia.com/"
|
||||
license=('custom:NVIDIA')
|
||||
@ -1301,7 +1305,9 @@ opencl-nvidia-tkg() {
|
||||
|
||||
# OpenCL
|
||||
install -Dm644 nvidia.icd "$pkgdir"/etc/OpenCL/vendors/nvidia.icd
|
||||
install -Dm755 libnvidia-compiler.so.$pkgver "$pkgdir"/usr/lib/libnvidia-compiler.so.$pkgver
|
||||
if [[ -e libnvidia-compiler.so.${pkgver} ]]; then
|
||||
install -Dm755 libnvidia-compiler.so.$pkgver "$pkgdir"/usr/lib/libnvidia-compiler.so.$pkgver
|
||||
fi
|
||||
if [[ -e libnvidia-compiler-next.so.${pkgver} ]]; then
|
||||
install -Dm755 libnvidia-compiler-next.so.$pkgver "$pkgdir"/usr/lib/libnvidia-compiler-next.so.$pkgver
|
||||
fi
|
||||
@ -1458,6 +1464,9 @@ nvidia-utils-tkg() {
|
||||
if [[ $pkgver != 396* ]]; then
|
||||
# Ray tracing
|
||||
install -D -m755 "libnvoptix.so.${pkgver}" "${pkgdir}/usr/lib/libnvoptix.so.${pkgver}"
|
||||
if [ -e "nvoptix.bin" ]; then
|
||||
install -D -m644 "nvoptix.bin" "${pkgdir}/usr/share/nvidia/nvoptix.bin"
|
||||
fi
|
||||
install -D -m755 "libnvidia-rtcore.so.${pkgver}" "${pkgdir}/usr/lib/libnvidia-rtcore.so.${pkgver}"
|
||||
if [ -e "libnvidia-cbl.so.${pkgver}" ]; then
|
||||
install -D -m755 "libnvidia-cbl.so.${pkgver}" "${pkgdir}/usr/lib/libnvidia-cbl.so.${pkgver}"
|
||||
@ -1496,6 +1505,12 @@ nvidia-utils-tkg() {
|
||||
install -D -m755 "libcudadebugger.so.${pkgver}" "${pkgdir}/usr/lib/libcudadebugger.so.${pkgver}"
|
||||
fi
|
||||
|
||||
# pkcs11
|
||||
if (( ${pkgver%%.*} >= 535 )); then
|
||||
install -D -m755 "libnvidia-pkcs11-openssl3.so.${pkgver}" "${pkgdir}/usr/lib/libnvidia-pkcs11-openssl3.so.${pkgver}"
|
||||
install -D -m755 "libnvidia-pkcs11.so.${pkgver}" "${pkgdir}/usr/lib/libnvidia-pkcs11.so.${pkgver}"
|
||||
fi
|
||||
|
||||
# PTX JIT Compiler (Parallel Thread Execution (PTX) is a pseudo-assembly language for CUDA)
|
||||
install -D -m755 "libnvidia-ptxjitcompiler.so.${pkgver}" "${pkgdir}/usr/lib/libnvidia-ptxjitcompiler.so.${pkgver}"
|
||||
|
||||
@ -1715,7 +1730,9 @@ lib32-opencl-nvidia-tkg() {
|
||||
cd $_pkg/32
|
||||
|
||||
# OpenCL
|
||||
install -D -m755 libnvidia-compiler.so.$pkgver "$pkgdir"/usr/lib32/libnvidia-compiler.so.$pkgver
|
||||
if [[ -e libnvidia-compiler.so.${pkgver} ]]; then
|
||||
install -D -m755 libnvidia-compiler.so.$pkgver "$pkgdir"/usr/lib32/libnvidia-compiler.so.$pkgver
|
||||
fi
|
||||
install -D -m755 libnvidia-opencl.so.$pkgver "$pkgdir"/usr/lib32/libnvidia-opencl.so.$pkgver
|
||||
|
||||
# create missing soname links
|
||||
@ -1778,6 +1795,7 @@ lib32-nvidia-utils-tkg() {
|
||||
install -D -m755 "libcuda.so.${pkgver}" "${pkgdir}/usr/lib32/libcuda.so.${pkgver}"
|
||||
install -D -m755 "libnvcuvid.so.${pkgver}" "${pkgdir}/usr/lib32/libnvcuvid.so.${pkgver}"
|
||||
|
||||
|
||||
# PTX JIT Compiler (Parallel Thread Execution (PTX) is a pseudo-assembly language for CUDA)
|
||||
install -D -m755 "libnvidia-ptxjitcompiler.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-ptxjitcompiler.so.${pkgver}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user