diff --git a/pkgbuilds/lib32-nvidia-580xx-utils/.omarchy/patches/max-zstd-compression.patch b/pkgbuilds/lib32-nvidia-580xx-utils/.omarchy/patches/max-zstd-compression.patch new file mode 100644 index 0000000..10f90eb --- /dev/null +++ b/pkgbuilds/lib32-nvidia-580xx-utils/.omarchy/patches/max-zstd-compression.patch @@ -0,0 +1,15 @@ +--- a/PKGBUILD ++++ b/PKGBUILD +@@ -12,6 +12,12 @@ + #makedepends=('nvidia-libgl') # To avoid conflict during installation in the build chroot + license=('custom') + options=('!strip') ++ ++# Omarchy: the build image compresses with zstd at its default level, which ++# leaves these unstripped driver blobs far larger than they need to be. Maximum ++# zstd saves 25 MB here, most of it on the ISO's offline mirror. ++COMPRESSZST=(zstd -c -z -q --ultra -22 --threads=0 -) ++ + _pkg="NVIDIA-Linux-x86_64-${pkgver}" + source=("https://download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/${_pkg}.run") + sha512sums=('ca394b1e3f6c3403dc7ffe5d5fd7301bb06607fdbf75c9ffd338d7641c06d1878790c629108162adf4289ae829568973a48b7557183dbf7588e668f6d8edf3b3') diff --git a/pkgbuilds/lib32-nvidia-580xx-utils/PKGBUILD b/pkgbuilds/lib32-nvidia-580xx-utils/PKGBUILD index 92dec7e..a44c27e 100644 --- a/pkgbuilds/lib32-nvidia-580xx-utils/PKGBUILD +++ b/pkgbuilds/lib32-nvidia-580xx-utils/PKGBUILD @@ -6,12 +6,18 @@ pkgbase=lib32-nvidia-580xx-utils pkgname=('lib32-nvidia-580xx-utils' 'lib32-opencl-nvidia-580xx') pkgver=580.173.02 -pkgrel=1 +pkgrel=1.1 arch=('x86_64') url="http://www.nvidia.com/" #makedepends=('nvidia-libgl') # To avoid conflict during installation in the build chroot license=('custom') options=('!strip') + +# Omarchy: the build image compresses with zstd at its default level, which +# leaves these unstripped driver blobs far larger than they need to be. Maximum +# zstd saves 25 MB here, most of it on the ISO's offline mirror. +COMPRESSZST=(zstd -c -z -q --ultra -22 --threads=0 -) + _pkg="NVIDIA-Linux-x86_64-${pkgver}" source=("https://download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/${_pkg}.run") sha512sums=('ca394b1e3f6c3403dc7ffe5d5fd7301bb06607fdbf75c9ffd338d7641c06d1878790c629108162adf4289ae829568973a48b7557183dbf7588e668f6d8edf3b3') diff --git a/pkgbuilds/nvidia-580xx-utils/.omarchy/patches/max-zstd-compression.patch b/pkgbuilds/nvidia-580xx-utils/.omarchy/patches/max-zstd-compression.patch new file mode 100644 index 0000000..deb2e8f --- /dev/null +++ b/pkgbuilds/nvidia-580xx-utils/.omarchy/patches/max-zstd-compression.patch @@ -0,0 +1,15 @@ +--- a/PKGBUILD ++++ b/PKGBUILD +@@ -13,6 +13,12 @@ + url="http://www.nvidia.com/" + license=('custom') + options=('!strip') ++ ++# Omarchy: the build image compresses with zstd at its default level, which ++# leaves these unstripped driver blobs far larger than they need to be. Maximum ++# zstd saves 89 MB across this pkgbase, most of it on the ISO's offline mirror. ++COMPRESSZST=(zstd -c -z -q --ultra -22 --threads=0 -) ++ + _pkg="NVIDIA-Linux-x86_64-${pkgver}" + _pkg_open="NVIDIA-kernel-module-source-${pkgver}" + source=('nvidia-drm-outputclass.conf' diff --git a/pkgbuilds/nvidia-580xx-utils/PKGBUILD b/pkgbuilds/nvidia-580xx-utils/PKGBUILD index 2c95cfd..6721979 100644 --- a/pkgbuilds/nvidia-580xx-utils/PKGBUILD +++ b/pkgbuilds/nvidia-580xx-utils/PKGBUILD @@ -8,11 +8,17 @@ pkgbase=nvidia-580xx-utils pkgname=('nvidia-580xx-utils' 'opencl-nvidia-580xx' 'nvidia-580xx-dkms') pkgver=580.173.02 -pkgrel=1 +pkgrel=1.1 arch=('x86_64') url="http://www.nvidia.com/" license=('custom') options=('!strip') + +# Omarchy: the build image compresses with zstd at its default level, which +# leaves these unstripped driver blobs far larger than they need to be. Maximum +# zstd saves 89 MB across this pkgbase, most of it on the ISO's offline mirror. +COMPRESSZST=(zstd -c -z -q --ultra -22 --threads=0 -) + _pkg="NVIDIA-Linux-x86_64-${pkgver}" _pkg_open="NVIDIA-kernel-module-source-${pkgver}" source=('nvidia-drm-outputclass.conf'