Sources

The Tree of Radix and Third Party Sources

1388 Commits   0 Branches   11 Tags
author: kx <kx@radix.pro> 2021-09-30 12:44:41 +0300 committer: kx <kx@radix.pro> 2021-09-30 12:44:41 +0300 commit: d1505afb1a67ba313a4b7fe47acd633818e2ca37 parent: 92bc224837c14542a5e3f7e31c8a817fa607302b
Commit Summary:
SQLite 3.36.0.0
Diffstat:
1 file changed, 45 insertions, 0 deletions
diff --git a/packages/b/sqlite/2021/Makefile b/packages/b/sqlite/2021/Makefile
new file mode 100644
index 0000000..aba8cb3
--- /dev/null
+++ b/packages/b/sqlite/2021/Makefile
@@ -0,0 +1,54 @@
+#
+# Project Home:
+# ============
+# https://www.sqlite.org
+#
+# Downloads:
+# =========
+# https://www.sqlite.org/download.html
+# https://www.sqlite.org/2021/sqlite-autoconf-3360000.tar.gz
+#
+# tarball, version encoding:
+# =========================
+# tarball: sqlite-product-version.tar.gz
+# version: 3.X.Y -> 3XXYY00; 3.X.Y.Z -> 3XXYYZZ
+#
+
+url         = https://www.sqlite.org/2021
+
+versions    = 3.36.0.0
+pkgname     = sqlite
+product     = autoconf
+suffix      = tar.gz
+
+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 version in $(versions) ; do \
+	  m=`echo $$version | cut -f1 -d'.'` ; \
+	  x=`echo $$version | cut -f2 -d'.'` ; \
+	  y=`echo $$version | cut -f3 -d'.'` ; \
+	  z=`echo $$version | cut -f4 -d'.'` ; \
+	  vcode=`printf "%d%0.2d%0.2d%0.2d" $$m $$x $$y $$z` ; \
+	  wget -N $(url)/$(pkgname)-$(product)-$$vcode.$(suffix) ; \
+	  tar xzf $(pkgname)-$(product)-$$vcode.$(suffix) ; \
+	  mv $(pkgname)-$(product)-$$vcode $(pkgname)-$$version ; \
+	  tar czf $(pkgname)-$$version.$(suffix) $(pkgname)-$$version ; \
+	  rm -rf $(pkgname)-$$version $(pkgname)-$(product)-$$vcode.$(suffix) ; \
+	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)