author: kx <kx@radix.pro> 2023-12-25 11:25:22 +0300
committer: kx <kx@radix.pro> 2023-12-25 11:25:22 +0300
commit: 93cd785973a3daceabcdc7b98834ae09ea51ba5a
parent: 967162a0c61261c8a40e12186c66c6c92e3ffa3e
Commit Summary:
Diffstat:
1 file changed, 48 insertions, 0 deletions
diff --git a/packages/l/gegl/babl/Makefile b/packages/l/gegl/babl/Makefile
new file mode 100644
index 0000000..3612790
--- /dev/null
+++ b/packages/l/gegl/babl/Makefile
@@ -0,0 +1,62 @@
+#
+# Project Home:
+# ============
+# https://gegl.org/babl
+#
+# Clone:
+# =====
+# git clone https://gitlab.gnome.org/GNOME/babl.git
+#
+
+url = https://gitlab.gnome.org/GNOME
+
+repo_name = babl
+pkg_name = babl
+suffix = tar.xz
+
+versions = 0.1.106
+
+# List of tags to be extracted:
+TAGS = $(foreach version,$(versions),$(addprefix BABL_, $(shell echo $(version) | sed 's,\.,_,g')))
+
+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=BABL_`echo $$version | sed 's,\.,_,g'` ; \
+ 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)