initial commit

This commit is contained in:
ed 2019-12-30 08:32:28 +01:00
commit 68e3a33de7
2 changed files with 28 additions and 0 deletions

27
Makefile Normal file
View File

@ -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)

View File

@ -0,0 +1 @@
03b0ab4e89787fbbc513c55f9c85c8cd7e2063c2bcd66cbe3ca4e2b56fcf31d1 waterfox-current-2019.10.en-US.linux-x86_64.tar.bz2