author: kx <kx@radix.pro> 2023-12-09 11:45:21 +0300
committer: kx <kx@radix.pro> 2023-12-09 11:45:21 +0300
commit: 27105bd9209c77194f14dd6e9f130700f764dd92
parent: 9f7106576d0e78cc2f92cdcb5c2026cef0ec5619
Commit Summary:
Diffstat:
3 files changed, 72 insertions, 1 deletion
diff --git a/packages/x/MINT/Makefile b/packages/x/MINT/Makefile
new file mode 100644
index 0000000..31561a3
--- /dev/null
+++ b/packages/x/MINT/Makefile
@@ -0,0 +1,24 @@
+
+#
+# Following command helps to cheate SUBDIRS list:
+# $ tree -fid .
+#
+
+SUBDIRS := cjs
+
+
+all-recursive downloads_clean-recursive:
+ @set fnord $(MAKEFLAGS); amf=$$2; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ local_target="$$target"; \
+ (cd $$subdir && $(MAKE) $$fnord $$local_target) \
+ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+ done; test -z "$$fail"
+
+all: all-recursive
+
+downloads_clean: downloads_clean-recursive
+
+.PHONY: all-recursive downloads_clean-recursive all downloads_clean
diff --git a/packages/x/MINT/cjs/Makefile b/packages/x/MINT/cjs/Makefile
new file mode 100644
index 0000000..eca6425
--- /dev/null
+++ b/packages/x/MINT/cjs/Makefile
@@ -0,0 +1,69 @@
+#
+# Project Home:
+# ============
+# https://01.org/linuxmedia/vaapi
+#
+# GitHub:
+# ======
+# git clone https://github.com/linuxmint/cjs.git
+#
+
+url = https://github.com/linuxmint
+
+repo_name = cjs
+pkg_name = cjs
+
+#
+# List of tags to be extracted (git rev-list -n1 master.mint21):
+# =============================================================
+# hash | tag
+# ----------------------------------------+-----
+revisions = 4b29b2bde2cb9361f1da9a582d88d7fe1bf597fe:6.0.0
+
+git_repo = .git_clone
+
+suffix = tar.xz
+
+versions = $(foreach tag, $(revisions), $(shell echo $(tag) | cut -f 2 -d ':'))
+
+tarballs = $(addsuffix .$(suffix), $(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 revision in $(revisions) ; do \
+ hash=`echo $$revision | cut -f 1 -d ':'` ; \
+ version=`echo $$revision | cut -f 2 -d ':'` ; \
+ if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+ echo -e "\n======= Creating '$(pkg_name)-$$version.$(suffix)' snapshot =======" ; \
+ ( cd $(repo_name) && \
+ git archive --format=tar --prefix=$(pkg_name)-$$version/ $$hash | \
+ xz >../$(pkg_name)-$$version.$(suffix) ) ; \
+ fi ; \
+ done
+
+
+$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
+ @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)
diff --git a/packages/x/Makefile b/packages/x/Makefile
index 169c3be..e8333fa 100644
--- a/packages/x/Makefile
+++ b/packages/x/Makefile
@@ -4,7 +4,8 @@
# $ tree -fid .
#
-SUBDIRS := Vulkan \
+SUBDIRS := MINT \
+ Vulkan \
WindowMaker \
WindowMaker-extra \
conky \