summaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: 7064850f9210586e2c107821b5b6d9512870017f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f

FIREFOX_ID := {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
EXTENSION_ID := foxyproxy@eric.h.jung

SHELL := sh -e

%:
	dh ${@}

override_dh_auto_install:
	mkdir -p debian/webext-foxyproxy/usr/share/webext
	cp -a src debian/webext-foxyproxy/usr/share/webext/foxyproxy

	# fonts-font-awesome
	sed -i -e 's|styles/fontawesome-.*.css|styles/font-awesome.min.css|g' debian/webext-foxyproxy/usr/share/webext/foxyproxy/*.html

execute_before_dh_link:
	mkdir -p debian/webext-foxyproxy/usr/share/mozilla/extensions/${FIREFOX_ID}
	ln -s /usr/share/webext/foxyproxy debian/webext-foxyproxy/usr/share/mozilla/extensions/${FIREFOX_ID}/${EXTENSION_ID}

execute_after_dh_missing:
	# fonts-font-awesome
	@if grep -qs -r 'styles/fontawesome-.*.css' debian/webext-foxyproxy/usr/share/webext/foxyproxy; \
	then \
		echo "E: found remaining references to embedded fonts-font-awesome, aborting."; \
		exit 1; \
	fi