[hackers] [libgrapheme][PATCH] also provide better compressed zst tarball

From: NRK <nrk_AT_disroot.org>
Date: Thu, 1 Jun 2023 00:43:32 +0600

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
_AT_@ -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
Received on Wed May 31 2023 - 20:43:32 CEST

This archive was generated by hypermail 2.3.0 : Wed May 31 2023 - 20:48:38 CEST