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