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:
Diffstat:
1 file changed, 30 insertions, 0 deletions
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)