Last active
November 22, 2017 17:30
-
-
Save pyllyukko/0edcfa9ce970f1a0683bff93d315cbd6 to your computer and use it in GitHub Desktop.
Firefox downloader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Makefile that downloads & verifies Firefox | |
# | |
FF_VERSION:=57.0 | |
ARCH:=x86_64 | |
SHELL:=/bin/bash | |
.PHONY: download | |
download: firefox/linux-$(ARCH)/en-US/firefox-$(FF_VERSION).tar.bz2 | |
firefox/linux-$(ARCH)/en-US/firefox-$(FF_VERSION).tar.bz2: firefox/SHA512SUMS | firefox/linux-$(ARCH)/en-US/ | |
wget -nv https://ftp.mozilla.org/pub/firefox/releases/$(FF_VERSION)/linux-$(ARCH)/en-US/firefox-$(FF_VERSION).tar.bz2 -O $@ | |
cd firefox && fgrep "linux-$(ARCH)/en-US/firefox-$(FF_VERSION).tar.bz2" SHA512SUMS | sha512sum -c | |
firefox/SHA512SUMS: firefox/SHA512SUMS.asc | firefox/ | |
wget -nv https://ftp.mozilla.org/pub/firefox/releases/$(FF_VERSION)/$(notdir $@) -O $@ | |
gpgv $< $@ | |
firefox/SHA512SUMS.asc: | firefox/ | |
wget -nv https://ftp.mozilla.org/pub/firefox/releases/$(FF_VERSION)/$(notdir $@) -O $@ | |
firefox/ firefox/linux-$(ARCH)/en-US/: | |
mkdir -pv $@ | |
.PHONY: clean | |
clean: | |
-rm -v firefox/SHA512SUMS{.asc,} firefox/linux-$(ARCH)/en-US/firefox-$(FF_VERSION).tar.bz2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment