File: rules

package info (click to toggle)
lightbeam 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 2,344 kB
  • sloc: makefile: 18; sh: 6
file content (28 lines) | stat: -rwxr-xr-x 598 bytes parent folder | download
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

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpkg/pkg-info.mk
ID:=$(shell jq -r .applications.gecko.id manifest.json)
ifeq ($(ID), null)
    ID:=jid1-F9UJ2thwoAm5gQ@jetpack
endif

%:
	dh $@

override_dh_clean:
	dh_clean
	$(RM) -r META-INF

override_dh_auto_build:
	@

override_dh_install:
	dh_install -XLICENSE -XCOPYING
	$(RM) -rv debian/*/usr/share/webext/*/debian

override_dh_link: $(info :: ID=$(ID))
	dh_link -v \
            /usr/share/webext/$(DEB_SOURCE)  /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/$(ID)