Radix cross Linux 3pp sources

RcL sources – is a tree of Third Party and Radix source tarballs

343 Commits   0 Branches   0 Tags
author: kx <kx@radix.pro> 2023-12-27 07:24:28 +0300 committer: kx <kx@radix.pro> 2023-12-27 07:24:28 +0300 commit: aa6a3c316b766498aa1dd20971bbde2e0224caba parent: d562328c8b6025e09593f885479483811662d2ff
Commit Summary:
GNU: parted-3.6
Diffstat:
1 file changed, 29 insertions, 0 deletions
diff --git a/GNU/parted/Makefile b/GNU/parted/Makefile
new file mode 100644
index 0000000..f4c0637
--- /dev/null
+++ b/GNU/parted/Makefile
@@ -0,0 +1,38 @@
+#
+# Project Home:
+# ============
+# https://www.gnu.org/software/parted
+#
+# Downloads:
+# =========
+# https://ftp.gnu.org/gnu/parted
+#
+
+url         = https://ftp.gnu.org/gnu/parted
+
+versions    = 3.6
+
+pkgname     = parted
+suffix      = tar.xz
+
+tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+
+all: $(tarballs) $(sha1s)
+
+.PHONY: downloads_clean
+
+$(tarballs):
+	@echo -e "\n======= Downloading source tarballs =======\n"
+	@for tarball in $(tarballs) ; do \
+	  wget -N $(url)/$$tarball ; \
+	done
+
+$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
+	@for tarball in $< ; do \
+	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
+	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+	done
+
+downloads_clean:
+	@rm -rf $(tarballs) $(sha1s)