commit 24d2f2f
hovercats
·
2024-04-13 06:33:06 +0000 UTC
parent 8e305ce
zstd: import
8 files changed,
+152,
-0
+48,
-0
1@@ -0,0 +1,48 @@
2+zstd
3+________________________________________________________________________________
4+
5+Zstandard (or zstd) is a lossless data compression algorithm developed by
6+Yann Collet at Facebook. Zstd is the reference implementation in C. Version 1 of
7+this implementation was released as open-source software on 31 August 2016. [0]
8+
9+Upstream: https://github.com/facebook/zstd
10+
11+
12+[000] Index
13+________________________________________________________________________________
14+
15+* Installation ........................................................... [001]
16+* Setup .................................................................. [002]
17+* Usage .................................................................. [003]
18+* References ............................................................. [004]
19+
20+
21+[001] Installation
22+________________________________________________________________________________
23+
24++------------------------------------------------------------------------------+
25+| |
26+| $ kiss b zstd |
27+| |
28++------------------------------------------------------------------------------+
29+
30+
31+[002] Setup
32+________________________________________________________________________________
33+
34+To use zstd as the package manager's compression method for build tarballs, set
35+the environment variable KISS_COMPRESS to 'zst'. If zstd will not be used as
36+the package manager's compression method, no such setup is required.
37+
38+
39+[003] Usage
40+________________________________________________________________________________
41+
42+Refer to the manual pages and command help output.
43+
44+
45+[004] References
46+________________________________________________________________________________
47+
48+[0] https://en.wikipedia.org/wiki/Zstandard
49+
+13,
-0
1@@ -0,0 +1,13 @@
2+#!/bin/sh -e
3+
4+patch -p1 < drop-shared-libs.patch
5+
6+sed 's/^FLAGS.*=/FLAGS = -static /' programs/Makefile > _
7+mv -f _ programs/Makefile
8+
9+make \
10+ HAVE_LZMA=0 \
11+ HAVE_ZLIB=0 \
12+ HAVE_LZ4=0
13+
14+make PREFIX=/usr DESTDIR="$1" install
+2,
-0
1@@ -0,0 +1,2 @@
2+1d5a2f321553b474179a3c88c00038b1b529087cf5f39fb47445b6b8558ed68457
3+1eb5d6a667a8e10124a948095b47eeb663199ac0dd0acef42d9353841dd3ad040f
+0,
-0
+37,
-0
1@@ -0,0 +1,37 @@
2+/var/db/kiss/installed/zstd/version
3+/var/db/kiss/installed/zstd/sources
4+/var/db/kiss/installed/zstd/patches/drop-shared-libs.patch
5+/var/db/kiss/installed/zstd/patches/
6+/var/db/kiss/installed/zstd/manifest
7+/var/db/kiss/installed/zstd/checksums
8+/var/db/kiss/installed/zstd/build
9+/var/db/kiss/installed/zstd/README
10+/var/db/kiss/installed/zstd/
11+/var/db/kiss/installed/
12+/var/db/kiss/
13+/var/db/
14+/var/
15+/usr/share/man/man1/zstdless.1
16+/usr/share/man/man1/zstdgrep.1
17+/usr/share/man/man1/zstdcat.1
18+/usr/share/man/man1/zstd.1
19+/usr/share/man/man1/unzstd.1
20+/usr/share/man/man1/
21+/usr/share/man/
22+/usr/share/
23+/usr/lib/pkgconfig/libzstd.pc
24+/usr/lib/pkgconfig/
25+/usr/lib/libzstd.a
26+/usr/lib/
27+/usr/include/zstd_errors.h
28+/usr/include/zstd.h
29+/usr/include/zdict.h
30+/usr/include/
31+/usr/bin/zstdmt
32+/usr/bin/zstdless
33+/usr/bin/zstdgrep
34+/usr/bin/zstdcat
35+/usr/bin/zstd
36+/usr/bin/unzstd
37+/usr/bin/
38+/usr/
1@@ -0,0 +1,49 @@
2+diff --git a/lib/Makefile b/lib/Makefile
3+index ef20218..440e213 100644
4+--- a/lib/Makefile
5++++ b/lib/Makefile
6+@@ -154,19 +154,6 @@ ZSTD_DYNLIB_DIR := $(BUILD_DIR)/dynamic
7+ ZSTD_DYNLIB := $(ZSTD_DYNLIB_DIR)/$(LIBZSTD)
8+ ZSTD_DYNLIB_OBJ := $(addprefix $(ZSTD_DYNLIB_DIR)/,$(ZSTD_LOCAL_OBJ))
9+
10+-$(ZSTD_DYNLIB): | $(ZSTD_DYNLIB_DIR)
11+-$(ZSTD_DYNLIB): $(ZSTD_DYNLIB_OBJ)
12+-# Check for multithread flag at target execution time
13+- $(if $(filter -DZSTD_MULTITHREAD,$(CPPFLAGS)),\
14+- @echo compiling multi-threaded dynamic library $(LIBVER),\
15+- @echo compiling single-threaded dynamic library $(LIBVER))
16+- $(CC) $(FLAGS) $^ $(LDFLAGS) $(SONAME_FLAGS) -o $@
17+- @echo creating versioned links
18+- ln -sf $@ libzstd.$(SHARED_EXT_MAJOR)
19+- ln -sf $@ libzstd.$(SHARED_EXT)
20+-
21+-$(LIBZSTD): $(ZSTD_DYNLIB)
22+- cp -f $< $@
23+
24+ endif # ifndef BUILD_DIR
25+ endif # if windows
26+@@ -308,7 +295,7 @@ libzstd.pc: libzstd.pc.in
27+ $< >$@
28+
29+ .PHONY: install
30+-install: install-pc install-static install-shared install-includes
31++install: install-pc install-static install-includes
32+ @echo zstd static and shared library installed
33+
34+ .PHONY: install-pc
35+@@ -324,15 +311,6 @@ install-static:
36+ @echo Installing static library
37+ $(INSTALL_DATA) libzstd.a $(DESTDIR)$(LIBDIR)
38+
39+-.PHONY: install-shared
40+-install-shared:
41+- # only generate libzstd.so if it's not already present
42+- [ -e $(LIBZSTD) ] || $(MAKE) libzstd-release
43+- [ -e $(DESTDIR)$(LIBDIR) ] || $(INSTALL) -d -m 755 $(DESTDIR)$(LIBDIR)/
44+- @echo Installing shared library
45+- $(INSTALL_PROGRAM) $(LIBZSTD) $(DESTDIR)$(LIBDIR)
46+- ln -sf $(LIBZSTD) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT_MAJOR)
47+- ln -sf $(LIBZSTD) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT)
48+
49+ .PHONY: install-includes
50+ install-includes:
+2,
-0
1@@ -0,0 +1,2 @@
2+https://github.com/facebook/zstd/releases/download/v1.5.5/zstd-1.5.5.tar.gz
3+patches/drop-shared-libs.patch
+1,
-0
1@@ -0,0 +1 @@
2+1.5.5 1