diff options
author | B Stack <bgstack15@gmail.com> | 2020-01-14 21:39:59 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-01-14 21:39:59 -0500 |
commit | f1d02e5556f2a339954a5333300bd6dee23419da (patch) | |
tree | 7269f52b2c566232f374e16be77967215fdb6780 /waterfox-ublock-origin/debian/Makefile | |
parent | pm 28.8.1 rpm rc1 (diff) | |
download | stackrpms-f1d02e5556f2a339954a5333300bd6dee23419da.tar.gz stackrpms-f1d02e5556f2a339954a5333300bd6dee23419da.tar.bz2 stackrpms-f1d02e5556f2a339954a5333300bd6dee23419da.zip |
ublock-origin 1.16.4.14
Diffstat (limited to 'waterfox-ublock-origin/debian/Makefile')
-rw-r--r-- | waterfox-ublock-origin/debian/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/waterfox-ublock-origin/debian/Makefile b/waterfox-ublock-origin/debian/Makefile new file mode 100644 index 0000000..4717e98 --- /dev/null +++ b/waterfox-ublock-origin/debian/Makefile @@ -0,0 +1,17 @@ +# Makefile for waterfox-ublock-origin for devuan +SOURCE0=uBlock0.firefox-legacy.xpi +MOZ_EXTENSIONS=/usr/lib/waterfox/browser/extensions + +# this needs to be overwritten by the debian/rules file. +DESTDIR=/tmp + +install: + unzip ${SOURCE0} install.rdf + mkdir -p $(DESTDIR)${MOZ_EXTENSIONS} + newfilename="$$( grep 'em:id' install.rdf 2>/dev/null | head -n1 | sed -r -e 's/^.*<em:id>//;' -e 's/<\/em:id>.*$$//;' ).xpi" ; \ + test -z "$${newfilename}" && newfilename="$$( basename $${SOURCE0} )" ; \ + install -Dp -m0644 ${SOURCE0} $(DESTDIR)${MOZ_EXTENSIONS}/$${newfilename} + rm -f install.rdf || : + +uninstall: + rm -f $(DESTDIR)${MOZ_EXTENSIONS}/uBlock0@raymondhill.net.xpi |