File: rules

package info (click to toggle)
gnome-shell-extension-flypie 32-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,332 kB
  • sloc: javascript: 10,888; xml: 684; sh: 208; makefile: 80
file content (22 lines) | stat: -rwxr-xr-x 751 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
TEMPDIR=debian/tmp/usr/share/gnome-shell/extensions/flypie@schneegans.github.com
%:
	dh $@

override_dh_auto_build:
	$(MAKE) zip

override_dh_auto_test:
	# this requires podman (and hence network access)

override_dh_auto_install:
	mkdir -p $(TEMPDIR)
	unzip flypie@schneegans.github.com.zip -d $(TEMPDIR)
	cd schemas && glib-compile-schemas .
	cp schemas/gschemas.compiled $(TEMPDIR)/schemas/

override_dh_gencontrol:
	dh_gencontrol -- \
		-Vgnome:MinimumVersion=$(shell python3 -c "import json; print(min(int(x) for x in json.load(open('metadata.json', 'rt'))['shell-version']))") \
		-Vgnome:MaximumVersion=$(shell python3 -c "import json; print(1+max(int(x) for x in json.load(open('metadata.json', 'rt'))['shell-version']))")