File: rules

package info (click to toggle)
form-history-control 2.5.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 2,216 kB
  • sloc: makefile: 26; sh: 6
file content (42 lines) | stat: -rwxr-xr-x 1,520 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/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)
PKGD=debian/webext-form-history-control/usr/share/webext/form-history-control/

%:
	dh $@

override_dh_clean:
	dh_clean
	$(RM) -r MMETA-INFETA-INF

override_dh_auto_build:
	@

override_dh_install:
	dh_install -XLICENSE -XCOPYING
	$(RM) -rv debian/*/usr/share/webext/*/debian
## libjs-jquery
	cp -L -v /usr/share/javascript/jquery/jquery.js \
            $(PKGD)/popup/tableview/lib/jquery-3.4.1.min.js
## libjs-jquery-datatables
	cp -L -v /usr/share/javascript/jquery-datatables/jquery.dataTables.min.js \
            $(PKGD)/popup/tableview/lib/jquery.dataTables.min.js
	cp -L -v /usr/share/javascript/jquery-datatables/css/jquery.dataTables.min.css \
            $(PKGD)/popup/tableview/lib/jquery.dataTables.min.css
## libjs-jquery-mousewheel
	cp -L -v /usr/share/javascript/jquery-mousewheel/jquery.mousewheel.js \
            $(PKGD)/popup/tableview/lib/jquery.mousewheel.js

override_dh_gencontrol:
	dh_gencontrol -- -Vmy:Built-Using="$(shell dpkg-query --show -f '$${source:Package} (=$${source:Version}),' libjs-jquery libjs-jquery-datatables libjs-jquery-mousewheel)"

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

#            /usr/share/webext/$(DEB_SOURCE)  /usr/share/chromium/extensions/$(DEB_SOURCE) \