File: rules

package info (click to toggle)
plover 4.0.0~dev8~66~g685bd33-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 12,260 kB
  • sloc: python: 15,963; sh: 658; makefile: 22
file content (28 lines) | stat: -rwxr-xr-x 1,058 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
#!/usr/bin/make -f

export PYBUILD_NAME = plover
export PY3VERSION := $(shell py3versions -d)

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_clean:
	rm -rfv .eggs plover/.eggs
	dh_clean

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	python3 -m pytest
endif

override_dh_auto_install:
	dh_auto_install
	rm -rvf debian/plover/usr/lib/$(PY3VERSION)/dist-packages/plover_build_utils
	mkdir -p debian/plover/usr/share/plover
	mv debian/plover/usr/lib/$(PY3VERSION)/dist-packages/plover/assets debian/plover/usr/share/plover/
	dh_link usr/share/plover/assets usr/lib/$(PY3VERSION)/dist-packages/plover/assets
	mv debian/plover/usr/lib/$(PY3VERSION)/dist-packages/plover/gui_qt/resources debian/plover/usr/share/plover/
	dh_link usr/share/plover/resources usr/lib/$(PY3VERSION)/dist-packages/plover/gui_qt/resources
	dh_install application/plover.desktop usr/share/applications/
	dh_install plover/assets/plover.png usr/share/pixmaps/
	dh_install plover/assets/plover-icon.svg usr/share/icons/hicolor/scalable/apps/plover.svg