File: rules

package info (click to toggle)
gnome-shell-extension-system-monitor 38%2Bgit20200414-32cc79e-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 624 kB
  • sloc: xml: 458; makefile: 148; sh: 27
file content (26 lines) | stat: -rwxr-xr-x 938 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
23
24
25
26
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk
BASEDIR=debian/gnome-shell-extension-*/usr/share/gnome-shell/extensions/*
%:
	dh $@

override_dh_auto_build:
	for POFILE in po/*/system-monitor.po; do \
		MOLANG=$$(echo $$POFILE | sed -e "s/po\///g" | sed -e "s/\/system-monitor.po//g"); \
		MOFILE="system-monitor@paradoxxx.zero.gmail.com/locale/$$MOLANG/LC_MESSAGES/system-monitor.mo"; \
		msgfmt -cv -o $$MOFILE $$POFILE; \
	done

override_dh_auto_install:
	# Compile gschemas so that we don't ship upstream compiled version
	glib-compile-schemas --strict --targetdir=system-monitor@paradoxxx.zero.gmail.com/schemas/ system-monitor@paradoxxx.zero.gmail.com/schemas
	make extension translate

override_dh_install:
	dh_install
	rm -f $(BASEDIR)/README
	sed -i 's/"version": -1/"version": "$(DEB_VERSION)"/' $(BASEDIR)/metadata.json;

override_dh_auto_clean:
	rm -f system-monitor@paradoxxx.zero.gmail.com/schemas/gschemas.compiled