diff options
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 (patch) | |
tree | 858ac8f02295148d7fa50a031171badc550bad32 /packages/a/i2c-tools | |
parent | 616e36d9e9e3e56af1ea2db055012b77863d09e6 (diff) | |
download | sources-19dc4c5d37a41a6fa8b1076b568191d0b61389c2.tar.xz |
applications
Diffstat (limited to 'packages/a/i2c-tools')
-rw-r--r-- | packages/a/i2c-tools/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/packages/a/i2c-tools/Makefile b/packages/a/i2c-tools/Makefile new file mode 100644 index 0000000..ba8403b --- /dev/null +++ b/packages/a/i2c-tools/Makefile @@ -0,0 +1,43 @@ +# +# Project Home: +# ============ +# https://i2c.wiki.kernel.org/index.php/I2C_Tools +# +# Git: +# === +# https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git +# +# Downloads: +# ========= +# https://mirrors.edge.kernel.org/pub/software/utils/i2c-tools +# + +url = https://www.kernel.org/pub/software/utils/i2c-tools + +versions = 3.1.0 3.1.1 4.2 4.3 + +pkgname = i2c-tools +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) |