diff options
author | kx <kx@radix.pro> | 2023-11-30 17:53:25 +0300 |
---|---|---|
committer | kx <kx@radix.pro> | 2023-11-30 17:53:25 +0300 |
commit | 3345d4929645612caeb8681883d3f5346940b0c9 (patch) | |
tree | 55908318b2bbc23159450a656e515b2d5835379b /KDE/office | |
parent | bebe191b37c862bd33096cd70db18797bc9c50a4 (diff) | |
download | sources-3345d4929645612caeb8681883d3f5346940b0c9.tar.xz |
KDE: office 23.08.3
Diffstat (limited to 'KDE/office')
-rw-r--r-- | KDE/office/Makefile | 24 | ||||
-rw-r--r-- | KDE/office/ghostwriter/Makefile | 62 |
2 files changed, 86 insertions, 0 deletions
diff --git a/KDE/office/Makefile b/KDE/office/Makefile new file mode 100644 index 0000000..835cb96 --- /dev/null +++ b/KDE/office/Makefile @@ -0,0 +1,24 @@ + +# +# Following command helps to cheate SUBDIRS list: +# $ tree -fid . +# + +SUBDIRS := ghostwriter + + +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/office/ghostwriter/Makefile b/KDE/office/ghostwriter/Makefile new file mode 100644 index 0000000..239d444 --- /dev/null +++ b/KDE/office/ghostwriter/Makefile @@ -0,0 +1,62 @@ +# +# Project Home: +# ============ +# https://invent.kde.org +# +# Clone: +# ===== +# git clone https://invent.kde.org/office/ghostwriter.git +# + +url = https://invent.kde.org/office + +repo_name = ghostwriter +pkg_name = ghostwriter +suffix = tar.xz + +versions = 23.08.3 + +# 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) |