summaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: d4e74c2525a607300ba2f35475e7021f99c1a883 (plain)
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
#!/usr/bin/make -f

EXTENSIONS_VERSION = 46

GNOME_SHELL_DEPENDS_LOW = 46
GNOME_SHELL_DEPENDS_HIGH = 47

%:
	dh ${@} --no-parallel

execute_after_dh_auto_clean:
	rm -f extensions/current

	# remove generated files
	rm -f extensions/44/*/*/schemas/gschemas.compiled
	rm -f extensions/44/middleclickclose/*/locale/*/LC_MESSAGES/*.mo

execute_before_dh_auto_build:
	ln -s $(EXTENSIONS_VERSION) extensions/current

execute_after_dh_auto_install:
	# removing unused files
	rm -f debian/gnome-shell-extensions-extra/usr/share/doc/*/CHANGELOG.txt
	rm -f debian/gnome-shell-extensions-extra/usr/share/doc/*/LICENSE.txt

override_dh_gencontrol:
	dh_gencontrol -- \
		-Vgnome-shell:Depends:low="$(GNOME_SHELL_DEPENDS_LOW)" \
		-Vgnome-shell:Depends:high="$(GNOME_SHELL_DEPENDS_HIGH)"