File: rules

package info (click to toggle)
plasma-browser-integration 6.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,000 kB
  • sloc: cpp: 3,195; javascript: 2,553; xml: 127; python: 77; sh: 46; makefile: 16
file content (24 lines) | stat: -rwxr-xr-x 971 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export FIREFOX_UUID = ec8030f7-c20a-464f-9b0e-13a3a9e97384
export EXTENSION_GECKO_ID = $(shell jq -r .browser_specific_settings.gecko.id < extension/manifest.json)
$(info EXTENSION_GECKO_ID=$(EXTENSION_GECKO_ID))

%:
	dh $@

execute_before_dh_auto_configure:
	if [ "${EXTENSION_GECKO_ID}" = "null" ]; then \
	    >&2 echo 'Failed to extract extension gecko id from manifest.'; \
	    exit 1; \
	fi

override_dh_auto_configure:
	dh_auto_configure -- -DINSTALL_CHROME_MANIFEST=OFF

execute_after_dh_auto_install:
	mv debian/tmp/etc/opt/chrome/native-messaging-hosts/org.kde.plasma.browser_integration.json debian/tmp/etc/opt/chrome/native-messaging-hosts/org.kde.plasma.chrome_browser_integration.json
	mv debian/tmp/etc/opt/edge/native-messaging-hosts/org.kde.plasma.browser_integration.json debian/tmp/etc/opt/edge/native-messaging-hosts/org.kde.plasma.edge_browser_integration.json