[debian-edu-commits] debian-edu/ 05/11: Install data files to correct locations.
Dominik George
natureshadow-guest at moszumanska.debian.org
Sun Dec 3 17:01:32 UTC 2017
This is an automated email from the git hooks/post-receive script.
natureshadow-guest pushed a commit to branch master
in repository thonny.
commit 403d041e7fe0de0cab54085fc811b39ba00b95fa
Author: Dominik George <nik at naturalnet.de>
Date: Sun Dec 3 17:08:05 2017 +0100
Install data files to correct locations.
---
debian/rules | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/debian/rules b/debian/rules
index 1af2a68..70a8ed3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,3 +4,19 @@ export PYBUILD_NAME=thonny
%:
dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_install:
+ dh_install
+
+ # Move image resources to /usr/share as per FHS
+ mkdir -p debian/thonny/usr/share/thonny
+ mv debian/thonny/usr/lib/python3*/dist-packages/thonny/res debian/thonny/usr/share/thonny/
+ ln -sf /usr/share/thonny/res debian/thonny/usr/lib/python3*/dist-packages/thonny/
+
+override_dh_installdocs:
+ dh_installdocs
+
+ # Move help page to /usr/share/doc to double as README and be out of /usr/lib
+ cd debian/thonny/usr/lib/python3*/dist-packages/thonny/plugins/help/ ; \
+ mv help.rst ../../../../..//share/doc/thonny/README.rst ; \
+ ln -sf /usr/share/doc/thonny/README.rst help.rst
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/thonny.git
More information about the debian-edu-commits
mailing list