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-08-25 17:52:21 +0300 committer: kx <kx@radix.pro> 2023-08-25 17:52:21 +0300 commit: e2cd863f5eb4fd9675cb624da3b1400fde5d1e71 parent: 36bbb8da3fcf841a686021d159a31339ac14361d
Commit Summary:
flashrom-1.3.0
Diffstat:
3 files changed, 78 insertions, 0 deletions
diff --git a/packages/l/Makefile b/packages/l/Makefile
index 8220e9e..e12dd59 100644
--- a/packages/l/Makefile
+++ b/packages/l/Makefile
@@ -61,11 +61,13 @@ SUBDIRS := aalib               \
            libcaca             \
            libcap              \
            libcap-ng           \
+           libconfuse          \
            libdaemon           \
            libdatrie           \
            libedit             \
            libevent            \
            libffi              \
+           libftdi1            \
            libical             \
            libieee1284         \
            libiodbc            \
diff --git a/packages/l/libconfuse/Makefile b/packages/l/libconfuse/Makefile
new file mode 100644
index 0000000..1179e56
--- /dev/null
+++ b/packages/l/libconfuse/Makefile
@@ -0,0 +1,59 @@
+#
+# Project Home:
+# ============
+#   https://github.com/libconfuse/libconfuse
+#
+# Clone:
+# =====
+#   https://github.com/libconfuse/libconfuse.git
+#
+
+url        = https://github.com/libconfuse
+
+repo_name  = libconfuse
+pkg_name   = libconfuse
+suffix     = tar.xz
+
+versions   = 3.3
+
+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)
diff --git a/packages/l/libftdi1/Makefile b/packages/l/libftdi1/Makefile
new file mode 100644
index 0000000..3bd218e
--- /dev/null
+++ b/packages/l/libftdi1/Makefile
@@ -0,0 +1,40 @@
+#
+# Project Home:
+# ============
+#   https://www.intra2net.com/en/developer/libftdi/index.php
+#
+# Downloads:
+# =========
+#   https://www.intra2net.com/en/developer/libftdi/download.php
+#   https://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.5.tar.bz2
+#
+
+url         = https://www.intra2net.com/en/developer/libftdi/download
+
+versions    = 1.5
+
+pkgname     = libftdi1
+suffix      = tar.bz2
+
+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)