libgrapheme's tarball, as of master branch, reaches about 2.5M, which
is much bigger than most suckless software (although this is still
pretty small by modern standards).

with zstd's highest compression setting, this can be cut in half. zstd
is also included in the base system for many distros - which may be able
to make use of this.

        $ du -h libgrapheme-*tar.*
        824K    libgrapheme-2.0.2.tar.gz
        472K    libgrapheme-2.0.2.tar.zst
        2.5M    libgrapheme-master.tar.gz
        1.2M    libgrapheme-master.tar.zst
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile b/Makefile
index e403bb2..05e3f44 100644
--- a/Makefile
+++ b/Makefile
@@ -360,6 +360,7 @@ dist:
        cp $(SRC:=.c) src/util.h "libgrapheme-$(VERSION)/src"
        cp $(TEST:=.c) test/util.c test/util.h "libgrapheme-$(VERSION)/test"
        tar -cf - "libgrapheme-$(VERSION)" | gzip -c > 
"libgrapheme-$(VERSION).tar.gz"
+       tar -cf - "libgrapheme-$(VERSION)" | zstd -c --ultra -22 -T0 > 
"libgrapheme-$(VERSION).tar.zst"
        rm -rf "libgrapheme-$(VERSION)"
 
 format:
-- 
2.40.1


Reply via email to