summaryrefslogtreecommitdiff
path: root/KDE
diff options
context:
space:
mode:
authorkx <kx@radix.pro>2023-11-30 00:33:04 +0300
committerkx <kx@radix.pro>2023-11-30 00:33:04 +0300
commit79c8cf57fb12f65f8a17cbb312163869e64dde13 (patch)
treee6874725901c00e214e41c76ced5b21bba003de5 /KDE
parentb8086bfce26eaf33165099fe6cc7d8c1dd844e92 (diff)
downloadsources-79c8cf57fb12f65f8a17cbb312163869e64dde13.tar.xz
KDE: kpeoplevcard-0.1
Diffstat (limited to 'KDE')
-rw-r--r--KDE/Makefile1
-rw-r--r--KDE/pim/Makefile24
-rw-r--r--KDE/pim/kpeoplevcard/Makefile62
3 files changed, 87 insertions, 0 deletions
diff --git a/KDE/Makefile b/KDE/Makefile
index e05ffac..c1c0d6a 100644
--- a/KDE/Makefile
+++ b/KDE/Makefile
@@ -5,6 +5,7 @@
#
SUBDIRS := frameworks \
+ pim \
plasma
diff --git a/KDE/pim/Makefile b/KDE/pim/Makefile
new file mode 100644
index 0000000..745ec40
--- /dev/null
+++ b/KDE/pim/Makefile
@@ -0,0 +1,24 @@
+
+#
+# Following command helps to cheate SUBDIRS list:
+# $ tree -fid .
+#
+
+SUBDIRS := kpeoplevcard
+
+
+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/KDE/pim/kpeoplevcard/Makefile b/KDE/pim/kpeoplevcard/Makefile
new file mode 100644
index 0000000..3b8cce8
--- /dev/null
+++ b/KDE/pim/kpeoplevcard/Makefile
@@ -0,0 +1,62 @@
+#
+# Project Home:
+# ============
+# https://invent.kde.org
+#
+# Clone:
+# =====
+# git clone https://invent.kde.org/pim/kpeoplevcard.git
+#
+
+url = https://invent.kde.org/pim
+
+repo_name = kpeoplevcard
+pkg_name = kpeoplevcard
+suffix = tar.xz
+
+versions = 0.1
+
+# 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)