commit 68e3a33de7fe029fbdc1c02832f371e1ad188daf Author: ed Date: Mon Dec 30 08:32:28 2019 +0100 initial commit diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..37a3de8 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +INSTALL_PATH=/opt +EXEC=waterfox +BIN_PATH=/usr/local/bin +ARCHIVE=waterfox-current-2019.10.en-US.linux-x86_64.tar.bz2 +DISTURL=https://file.brz9.dev/waterfox/ + +SHA=$(ARCHIVE).sha256sum +SHADIFF=$(shell sha256sum $(ARCHIVE) | diff $(SHA) -) + +$(ARCHIVE): + wget $(DISTURL)/$(ARCHIVE) + +ifeq ($(strip $(SHADIFF)),) +check: $(ARCHIVE) + $(info $(ARCHIVE) seems ok) +else +check: $(SHA) $(ARCHIVE) + $(error $(ARCHIVE) seems corrupted) +endif + +install: check + tar -xf $(ARCHIVE) -C $(INSTALL_PATH) + ln -s $(INSTALL_PATH)/waterfox/waterfox $(BIN_PATH)/$(EXEC) + +uninstall: + rm -rf $(INSTALL_PATH)/waterfox + rm $(BIN_PATH)/$(EXEC) diff --git a/waterfox-current-2019.10.en-US.linux-x86_64.tar.bz2.sha256sum b/waterfox-current-2019.10.en-US.linux-x86_64.tar.bz2.sha256sum new file mode 100644 index 0000000..9ec94e1 --- /dev/null +++ b/waterfox-current-2019.10.en-US.linux-x86_64.tar.bz2.sha256sum @@ -0,0 +1 @@ +03b0ab4e89787fbbc513c55f9c85c8cd7e2063c2bcd66cbe3ca4e2b56fcf31d1 waterfox-current-2019.10.en-US.linux-x86_64.tar.bz2