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