diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:50:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:50:24 +0000 |
commit | 11f97ebf96e22ad64e621d8d1b61defe3180fff4 (patch) | |
tree | 06fdc7f2f2eaa8003a2ef18dd2fd41077c1f9ab3 /debian/rules | |
parent | Adding upstream version 7.5.1+dfsg. (diff) | |
download | foxyproxy-firefox-extension-debian/7.5.1+dfsg-3.tar.xz foxyproxy-firefox-extension-debian/7.5.1+dfsg-3.zip |
Adding debian version 7.5.1+dfsg-3.debian/7.5.1+dfsg-3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..7064850 --- /dev/null +++ b/debian/rules @@ -0,0 +1,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 |