Compress the nvidia 580xx packages with maximum zstd

The build image compresses at zstd's default level, which leaves these
unstripped driver blobs 22% larger than they need to be. Measured against the
packages on the quattro-beta3 ISO:

  nvidia-580xx-utils        359.4 -> 276.2 MiB
  lib32-nvidia-580xx-utils   74.2 ->  48.8 MiB
  nvidia-580xx-dkms          85.5 ->  79.8 MiB

That is 114 MiB off the ISO's offline mirror, which stores packages
essentially uncompressed inside squashfs, so it comes straight off the image.
The dkms package rides along on its pkgbase.

Carried as .omarchy patches so they survive AUR syncs.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
David Heinemeier Hansson
2026-08-12 00:55:43 -07:00
co-authored by Claude Opus 5
parent bdbf7182c0
commit 799a98a456
4 changed files with 44 additions and 2 deletions
@@ -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'
+7 -1
View File
@@ -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'