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-04-11 06:54:40 +0300 committer: kx <kx@radix.pro> 2023-04-11 06:54:40 +0300 commit: 19dc4c5d37a41a6fa8b1076b568191d0b61389c2 parent: 616e36d9e9e3e56af1ea2db055012b77863d09e6
Commit Summary:
applications
Diffstat:
1 file changed, 33 insertions, 0 deletions
diff --git a/packages/a/powertop/Makefile b/packages/a/powertop/Makefile
new file mode 100644
index 0000000..a2d199c
--- /dev/null
+++ b/packages/a/powertop/Makefile
@@ -0,0 +1,42 @@
+#
+# Project Home:
+# ============
+#   https://01.org/powertop
+#
+# GitHub:
+# ======
+#   https://github.com/fenrus75/powertop
+#
+# Downloads:
+# =========
+#   https://01.org/powertop/downloads
+#
+
+url         = https://01.org/sites/default/files/downloads/powertop
+
+versions    = 2.4 2.6.1 2.7 2.8
+pkg_name    = powertop
+suffix      = tar.gz
+
+tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkg_name)-, $(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)