From 39228883eadbf0b1ac8fa9ca6842a9d4571a1cbc Mon Sep 17 00:00:00 2001 From: B Stack Date: Thu, 14 Feb 2019 10:27:46 -0500 Subject: pm-ublock dpkg for devuan --- palemoon-ublock-origin/debian/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 palemoon-ublock-origin/debian/Makefile (limited to 'palemoon-ublock-origin/debian/Makefile') diff --git a/palemoon-ublock-origin/debian/Makefile b/palemoon-ublock-origin/debian/Makefile new file mode 100644 index 0000000..3531a3e --- /dev/null +++ b/palemoon-ublock-origin/debian/Makefile @@ -0,0 +1,17 @@ +# Makefile for palemoon-ublock-origin for devuan +SOURCE0=uBlock0.firefox-legacy.xpi +MOZ_EXTENSIONS=/usr/lib/palemoon/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/^.*//;' -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 -- cgit