118 kx
118 kx COMPONENT_TARGETS = $(HARDWARE_NOARCH)
118 kx
118 kx
118 kx include ../../../../../build-system/constants.mk
118 kx
118 kx
118 kx url = $(DOWNLOAD_SERVER)/sources/packages/a/linuxdoc-tools/sgml-common
118 kx
118 kx versions = 0.6.3
118 kx pkgname = sgml-common
118 kx suffix = tar.xz
118 kx
118 kx tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
118 kx sha1s = $(addsuffix .sha1sum, $(tarballs))
118 kx
118 kx patches = $(CURDIR)/patches/sgml-common-0.6.3-install-catalog.patch
118 kx
118 kx .NOTPARALLEL: $(patches)
118 kx
118 kx
118 kx BUILD_TARGETS = $(tarballs) $(sha1s) $(patches)
118 kx
118 kx
118 kx include ../../../../../build-system/core.mk
118 kx
118 kx
118 kx .PHONY: download_clean
118 kx
118 kx
118 kx $(tarballs):
118 kx @echo -e "\n======= Downloading source tarballs =======" ; \
118 kx for tarball in $(tarballs) ; do \
118 kx echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & \
118 kx done ; wait
118 kx
118 kx $(sha1s): $(tarballs)
118 kx @for sha in $@ ; do \
118 kx echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
118 kx echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & wait %1 ; \
118 kx touch $$sha ; \
118 kx echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
118 kx sha1sum --check $$sha ; ret="$$?" ; \
118 kx if [ "$$ret" == "1" ]; then \
118 kx echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
118 kx exit 1 ; \
118 kx fi ; \
118 kx done
118 kx
118 kx $(patches): $(sha1s)
118 kx @echo -e "\n======= Create Patches =======\n" ; \
118 kx ( cd create-0.6.3-install-catalog-patch ; ./create.patch.sh ) ; \
118 kx echo -e "\n"
118 kx
118 kx download_clean:
118 kx @rm -f $(tarballs) $(sha1s) $(patches)