blob: fca5b8a27d7af900ee4dba126683bc0b16be960f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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/^.*<em:id>//;' -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
|