Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DH_VERBOSE = 1
4 export DEB_PYTHON_INSTALL_LAYOUT = deb
5
6 %:
7 dh $@ --buildsystem=meson
8
9 override_dh_auto_test:
10 ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
11 mkdir -p debian/build
12 export HOME=$(CURDIR)/debian/build && ./run-tests
13 rm -rf debian/build
14 endif
15
16 PNG_FILES = thumbnail_pocketmod.png thumbnail_sexy.png thumbnail_simple.png thumbnail_statusrpt.png thumbnail_textual.png
17 execute_after_dh_auto_install:
18 # Move script_pocketmod to /usr/bin and create a symbolic link in the export plugin template folder.
19 mv $(CURDIR)/debian/gtg/usr/lib/python3/dist-packages/GTG/plugins/export/export_templates/script_pocketmod $(CURDIR)/debian/gtg/usr/bin/gtg_script_pocketmod
20 ln -s /usr/bin/gtg_script_pocketmod $(CURDIR)/debian/gtg/usr/lib/python3/dist-packages/GTG/plugins/export/export_templates/script_pocketmod
21
22 # Move png files to /usr/share/gtg and create symbolic links
23 mkdir -p $(CURDIR)/debian/gtg/usr/share/gtg/export_templates
24 for f in $(PNG_FILES); do \
25 echo $$f; \
26 mv $(CURDIR)/debian/gtg/usr/lib/python3/dist-packages/GTG/plugins/export/export_templates/$$f $(CURDIR)/debian/gtg/usr/share/gtg/export_templates/ ; \
27 ln -s /usr/share/gtg/export_templates/$$f $(CURDIR)/debian/gtg/usr/lib/python3/dist-packages/GTG/plugins/export/export_templates/$$f ; \
28 done
29
30 override_dh_fixperms:
31 dh_fixperms
32 find debian/ -type f -name networkmanager.py -exec chmod -x '{}' \;