From 9344bb002ddcfcea1e0587df1af22ee91f6c1e88 Mon Sep 17 00:00:00 2001 From: kx Date: Thu, 6 Apr 2023 19:18:36 +0300 Subject: GNOME sources --- GNOME/apps/gnome-nettool/Makefile | 55 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 GNOME/apps/gnome-nettool/Makefile (limited to 'GNOME/apps/gnome-nettool') diff --git a/GNOME/apps/gnome-nettool/Makefile b/GNOME/apps/gnome-nettool/Makefile new file mode 100644 index 0000000..c3833a8 --- /dev/null +++ b/GNOME/apps/gnome-nettool/Makefile @@ -0,0 +1,55 @@ +# +# Project Home: +# ============ +# https://www.gnome.org +# +# Repository browse: https://git.gnome.org/browse/gnome-nettool +# +# Downloads: +# ========= +# ftp://ftp.gnome.org/pub/GNOME/sources +# https://download.gnome.org/sources +# + + +url = https://download.gnome.org/sources + +versions = 3.8.1 42.0 + +pkg_name = gnome-nettool +arch_type = tar.xz +suffixes = $(arch_type) + +files = $(foreach suffix, $(suffixes), $(addsuffix .$(suffix), $(addprefix $(pkg_name)-, $(versions)))) + +tarballs = $(addsuffix .$(arch_type), $(addprefix $(pkg_name)-, $(versions))) +sha1s = $(addsuffix .sha1sum, $(tarballs)) + + +all: $(files) $(sha1s) + + +.PHONY: downloads_clean + +$(files): + @echo -e "\n======= Downloading '$(pkg_name)' sourses =======\n" + @for version in $(versions) ; do \ + major=`echo $$version | cut -f1 -d'.'` ; \ + if [ "$$major" -gt "3" ] ; then \ + major_minor=`echo $$version | sed 's/\([0-9]*\)\([\.].*\)/\1/'` ; \ + else \ + major_minor=`echo $$version | sed 's/\([0-9][.0-9][0-9]*\)\([\.].*\)/\1/'` ; \ + fi ; \ + for suffix in $(suffixes) ; do \ + wget -N $(url)/$(pkg_name)/$$major_minor/$(pkg_name)-$$version.$$suffix ; \ + done ; \ + done + +$(sha1s): %.$(arch_type).sha1sum : %.$(arch_type) + @for tarball in $< ; do \ + echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \ + sha1sum --binary $$tarball > $$tarball.sha1sum ; \ + done + +downloads_clean: + @rm -f $(files) $(sha1s) -- cgit v1.2.3