summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkx <kx@radix.pro>2024-02-03 10:46:52 +0300
committerkx <kx@radix.pro>2024-02-03 10:46:52 +0300
commit7c7e1cc7568e77127321e6c9ccd283e59e23d45e (patch)
tree2ea1ec206357ebc30221a44741c482b4ca3a0e58
parenta2727cb162e3fc7cf723d28fd48fdb3af1fe1dad (diff)
downloadsources-7c7e1cc7568e77127321e6c9ccd283e59e23d45e.tar.xz
xxhash-0.8.2
-rw-r--r--packages/l/Makefile1
-rw-r--r--packages/l/xxhash/Makefile62
2 files changed, 63 insertions, 0 deletions
diff --git a/packages/l/Makefile b/packages/l/Makefile
index 7a275a6..e234336 100644
--- a/packages/l/Makefile
+++ b/packages/l/Makefile
@@ -154,6 +154,7 @@ SUBDIRS := aalib \
v4l-utils \
volume_key \
woff2 \
+ xxhash \
zeromq \
zlib \
zstd
diff --git a/packages/l/xxhash/Makefile b/packages/l/xxhash/Makefile
new file mode 100644
index 0000000..8ba3056
--- /dev/null
+++ b/packages/l/xxhash/Makefile
@@ -0,0 +1,62 @@
+#
+# Project Home:
+# ============
+# https://xxhash.com/
+#
+# Clone:
+# =====
+# git clone https://github.com/Cyan4973/xxHash.git
+#
+
+url = https://github.com/Cyan4973
+
+repo_name = xxHash
+pkg_name = xxhash
+suffix = tar.xz
+
+versions = 0.8.2
+
+# List of tags to be extracted:
+TAGS = $(addprefix v, $(versions))
+
+git_repo = .git_clone
+tarballs = $(addsuffix .tar.xz, $(addprefix $(pkg_name)-, $(versions)))
+sha1s = $(addsuffix .sha1sum, $(tarballs))
+
+TARGETS = repository_clean
+
+
+all: $(TARGETS)
+
+.PHONY: downloads_clean repository_clean
+
+$(git_repo):
+ @echo -e "\n======= Clone $(repo_name).git repository =======\n"
+ @rm -rf $(repo_name)
+ @git clone $(url)/$(repo_name).git $(repo_name)
+ @touch $@
+
+$(tarballs): $(git_repo)
+ @for version in $(versions) ; do \
+ tag=v`echo $$version` ; \
+ if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+ echo -e "\n======= Creating '$(repo_name)-$$version.$(suffix)' snapshot =======" ; \
+ ( cd $(repo_name) && \
+ git archive --format=tar --prefix=$(pkg_name)-$$version/ $$tag | \
+ xz >../$(pkg_name)-$$version.$(suffix) ) ; \
+ fi ; \
+ done
+
+$(sha1s): %.tar.xz.sha1sum : %.tar.xz
+ @for tarball in $< ; do \
+ echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
+ sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+ done
+
+repository_clean: $(sha1s)
+ @echo -e "\n======= Remove cloned $(repo_name).git repository =======\n"
+ @rm -rf $(git_repo) $(repo_name)
+
+downloads_clean:
+ @rm -rf $(tarballs) $(sha1s)
+ @rm -rf $(git_repo) $(repo_name)