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>
16 lines
730 B
Diff
16 lines
730 B
Diff
--- 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')
|