File: rules

package info (click to toggle)
unknown-horizons 2019.1-8
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 347,924 kB
  • sloc: python: 46,805; xml: 3,137; sql: 1,189; sh: 736; makefile: 39; perl: 35
file content (39 lines) | stat: -rwxr-xr-x 1,420 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
#!/usr/bin/make -f
#export DH_VERBOSE=1
export PYBUILD_NAME=unknown-horizons
export XDG_CONFIG_HOME=$(CURDIR)/.config
export XDG_DATA_HOME=$(CURDIR)/.local/share
export XDG_CACHE_HOME=$(CURDIR)/.cache

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_configure:
	mkdir -p $(CURDIR)/.config/unknown-horizons \
	$(CURDIR)/.local/share/unknown-horizons \
	$(CURDIR)/.cache/unknown-horizons && cp content/settings-template.xml $(CURDIR)/.config
	dh_auto_configure

override_dh_auto_build:
	cp content/gui/images/logos/uh_no_text.svg $(CURDIR)/unknown-horizons.svg
	./setup.py build_i18n
	python3 horizons/engine/generate_atlases.py 2048

override_dh_auto_clean:
	mkdir -p $(CURDIR)/.config/unknown-horizons \
	$(CURDIR)/.local/share/unknown-horizons \
	$(CURDIR)/.cache/unknown-horizons && cp content/settings-template.xml $(CURDIR)/.config
	$(RM) $(CURDIR)/.config/settings-template.xml
	find . -name "*.mo" -delete
	$(RM) content/lang/stats.json
	$(RM) $(CURDIR)/unknown-horizons.svg
	dh_auto_clean

override_dh_auto_test:

execute_after_dh_auto_install:
	find debian/unknown-horizons -name "*.so" -delete
	rm debian/unknown-horizons/usr/share/unknown-horizons/content/fonts/GPL_fontexception\
	 debian/unknown-horizons/usr/share/unknown-horizons/content/fonts/OFL
	# Remove executable bit from files like tm_* and make Lintian happy
	find debian/unknown-horizons/usr/share/unknown-horizons -type f -exec chmod a-x {} \;