File: rules

package info (click to toggle)
gnome-browser-connector 42.1-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 256 kB
  • sloc: python: 615; sh: 21; makefile: 13
file content (22 lines) | stat: -rwxr-xr-x 962 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
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --libdir=/usr/lib

# Use debian/postinst to install the Chrome conffile
# and debian/postrm to remove it since dpkg's automatic
# conffile handling doesn't handle the special /etc/opt/ directory
# https://bugs.debian.org/888549
execute_after_dh_install:
	mkdir -p debian/gnome-browser-connector/usr/share/gnome-browser-connector
	mv debian/gnome-browser-connector/etc/opt/chrome/native-messaging-hosts/org.gnome.chrome_gnome_shell.json \
		debian/gnome-browser-connector/usr/share/gnome-browser-connector/org.gnome.chrome_gnome_shell.json
	mv debian/gnome-browser-connector/etc/opt/chrome/native-messaging-hosts/org.gnome.browser_connector.json \
		debian/gnome-browser-connector/usr/share/gnome-browser-connector/org.gnome.browser_connector.json
	rm -rf debian/gnome-browser-connector/etc/opt

execute_before_dh_install:
	find debian/ -name '__pycache__' -print | xargs -r rm -rf