blob: 563b82ba0ccd3e2a7dd10ddfc2102abf7a334d97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#
# Project Home:
# ============
# http://www.json.org
# https://github.com/json-c/json-c/wiki
# https://github.com/json-c/json-c
#
# Releases:
# https://github.com/json-c/json-c/releases
#
# Downloads:
# =========
# https://github.com/json-c/json-c/archive
#
url = https://github.com/json-c/json-c/archive/refs/tags
versions = 0.11-20130402 0.12-20140410 0.13.1-20180305 0.15-20200726
pkgname = json-c
suffix = tar.gz
tarballs = $(foreach v,$(versions),$(addsuffix .$(suffix),$(addprefix $(pkgname)-,$(shell echo $(v) | cut -f 1 -d '-'))))
sha1s = $(addsuffix .sha1sum, $(tarballs))
all: $(tarballs) $(signatures) $(sha1s)
.PHONY: downloads_clean
$(tarballs):
@echo -e "\n======= Downloading source tarballs =======\n"
@for version in $(versions) ; do \
v=`echo $$version | cut -f 1 -d '-'` ; \
wget -N $(url)/$(pkgname)-$${version}.$(suffix) ; \
tar xzf $(pkgname)-$${version}.$(suffix) ; \
rm -f $(pkgname)-$${version}.$(suffix) ; \
mv $(pkgname)-$(pkgname)-$${version} $(pkgname)-$$v ; \
tar czf $(pkgname)-$$v.$(suffix) $(pkgname)-$$v ; \
rm -rf $(pkgname)-$$v ; \
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)
|