blob: 4717e98e959ac98180dbf3e66e3cfb01bbcb5bf8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
|