diff options
author | kx <kx@radix.pro> | 2023-04-06 19:18:36 +0300 |
---|---|---|
committer | kx <kx@radix.pro> | 2023-04-06 19:18:36 +0300 |
commit | 9344bb002ddcfcea1e0587df1af22ee91f6c1e88 (patch) | |
tree | 864a5e01761e99450f8f08939d474e8cbc026c5c /GNOME/core/libart_lgpl | |
parent | c9b87548f19c4323592abff0a86bc1dac45658f0 (diff) | |
download | sources-9344bb002ddcfcea1e0587df1af22ee91f6c1e88.tar.xz |
GNOME sources
Diffstat (limited to 'GNOME/core/libart_lgpl')
-rw-r--r-- | GNOME/core/libart_lgpl/Makefile | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/GNOME/core/libart_lgpl/Makefile b/GNOME/core/libart_lgpl/Makefile new file mode 100644 index 0000000..1f95b75 --- /dev/null +++ b/GNOME/core/libart_lgpl/Makefile @@ -0,0 +1,48 @@ +# +# Project Home: +# ============ +# http://www.levien.com/libart +# +# Downloads: +# ========= +# ftp://ftp.gnome.org/pub/GNOME/sources +# https://download.gnome.org/sources +# + + +url = https://download.gnome.org/sources + +versions = 2.3.21 + +pkg_name = libart_lgpl +arch_type = tar.gz +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_minor=`echo $$version | sed 's/\([0-9][.0-9][0-9]*\)\([\.].*\)/\1/'` ; \ + 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) |