diff options
author | kx <kx@radix.pro> | 2024-01-18 10:59:30 +0300 |
---|---|---|
committer | kx <kx@radix.pro> | 2024-01-18 10:59:30 +0300 |
commit | 1ff9c5a6933482352d84aed85ccc37d92df7cea0 (patch) | |
tree | 44ec6a3cb898ff703fe3e801e110fe4324b911a5 | |
parent | d2034af61adbee3f9689112e690f4da426fb207e (diff) | |
download | sources-1ff9c5a6933482352d84aed85ccc37d92df7cea0.tar.xz |
gexiv2-0.14.2
-rw-r--r-- | GNOME/core/Makefile | 1 | ||||
-rw-r--r-- | GNOME/core/gexiv2/Makefile | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/GNOME/core/Makefile b/GNOME/core/Makefile index 9d397f8..47c1470 100644 --- a/GNOME/core/Makefile +++ b/GNOME/core/Makefile @@ -32,6 +32,7 @@ SUBDIRS := GConf \ gdk-pixbuf-xlib \ gdm \ geocode-glib \ + gexiv2 \ gjs \ glib \ glib-networking \ diff --git a/GNOME/core/gexiv2/Makefile b/GNOME/core/gexiv2/Makefile new file mode 100644 index 0000000..f7eaca8 --- /dev/null +++ b/GNOME/core/gexiv2/Makefile @@ -0,0 +1,55 @@ +# +# Project Home: +# ============ +# https://www.gnome.org +# +# Repository browse: https://git.gnome.org/browse/gdm +# +# Downloads: +# ========= +# ftp://ftp.gnome.org/pub/GNOME/sources +# https://download.gnome.org/sources +# + + +url = https://download.gnome.org/sources + +versions = 0.14.2 + +pkg_name = gexiv2 +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) |