diff options
author | kx <kx@radix.pro> | 2023-12-27 07:24:28 +0300 |
---|---|---|
committer | kx <kx@radix.pro> | 2023-12-27 07:24:28 +0300 |
commit | aa6a3c316b766498aa1dd20971bbde2e0224caba (patch) | |
tree | d5037e0a99d0004f7edb8c6f1ee3894e5188ed23 | |
parent | d562328c8b6025e09593f885479483811662d2ff (diff) | |
download | sources-aa6a3c316b766498aa1dd20971bbde2e0224caba.tar.xz |
GNU: parted-3.6
-rw-r--r-- | GNU/Makefile | 1 | ||||
-rw-r--r-- | GNU/parted/Makefile | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/GNU/Makefile b/GNU/Makefile index ca14d36..8d0de05 100644 --- a/GNU/Makefile +++ b/GNU/Makefile @@ -52,6 +52,7 @@ SUBDIRS := a2ps \ mtools \ multiprecision \ ncurses \ + parted \ patch \ pth \ readline \ diff --git a/GNU/parted/Makefile b/GNU/parted/Makefile new file mode 100644 index 0000000..f4c0637 --- /dev/null +++ b/GNU/parted/Makefile @@ -0,0 +1,38 @@ +# +# Project Home: +# ============ +# https://www.gnu.org/software/parted +# +# Downloads: +# ========= +# https://ftp.gnu.org/gnu/parted +# + +url = https://ftp.gnu.org/gnu/parted + +versions = 3.6 + +pkgname = parted +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) |