From ec1b4def96f555245774ae843bdcafff58103168 Mon Sep 17 00:00:00 2001 From: B Stack Date: Tue, 20 Oct 2020 14:14:07 -0400 Subject: ublock-origin-combined rc1 First attempt in both rpm and dpkg for a single package that owns ublock-origin. This should simplify maintenance going forward. --- ublock-origin-combined/debian/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ublock-origin-combined/debian/Makefile (limited to 'ublock-origin-combined/debian/Makefile') diff --git a/ublock-origin-combined/debian/Makefile b/ublock-origin-combined/debian/Makefile new file mode 100644 index 0000000..fca5b8a --- /dev/null +++ b/ublock-origin-combined/debian/Makefile @@ -0,0 +1,19 @@ +# Makefile for palemoon-ublock-origin for devuan +SOURCE0=uBlock0.firefox-legacy.xpi +extdir1=/usr/lib/palemoon/browser/extensions +extdir3=/usr/lib/waterfox/browser/extensions +extdir4=/usr/lib/newmoon/browser/extensions + +# this needs to be overwritten by the debian/rules file. +DESTDIR=/tmp + +install: + unzip ${SOURCE0} install.rdf + mkdir -p $(DESTDIR)${extdir1} + newfilename="$$( grep 'em:id' install.rdf 2>/dev/null | head -n1 | sed -r -e 's/^.*//;' -e 's/<\/em:id>.*$$//;' ).xpi" ; \ + test -z "$${newfilename}" && newfilename="$$( basename $${SOURCE0} )" ; \ + install -Dp -m0644 ${SOURCE0} $(DESTDIR)${extdir1}/$${newfilename} + rm -f install.rdf || : + +uninstall: + rm -f $(DESTDIR)${extdir1}/uBlock0@raymondhill.net.xpi -- cgit